diff --git a/pkg/chart/chart.go b/pkg/chart/chart.go index b768b69c8..aaff35fc6 100644 --- a/pkg/chart/chart.go +++ b/pkg/chart/chart.go @@ -427,11 +427,13 @@ func (c *Chart) loadMember(filename string) (*Member, error) { return result, nil } +//ChartContent is abstraction for the contents of a chart type ChartContent struct { Chartfile *Chartfile `json:"chartfile"` Members []*Member `json:"members"` } +// LoadContent loads contents of a chart directory into ChartContent func (c *Chart) LoadContent() (*ChartContent, error) { ms, err := c.loadDirectory(c.Dir()) if err != nil { diff --git a/pkg/repo/gcs_repo.go b/pkg/repo/gcs_repo.go index 3a4831d74..33075704e 100644 --- a/pkg/repo/gcs_repo.go +++ b/pkg/repo/gcs_repo.go @@ -46,7 +46,7 @@ const ( // GCSPublicRepoName is the name of the public GCS repository. GCSPublicRepoName = "kubernetes-charts" - // GCSPublicRepoName is the URL for the public GCS repository. + // GCSPublicRepoURL is the URL for the public GCS repository. GCSPublicRepoURL = "gs://" + GCSPublicRepoName // GCSPublicRepoBucket is the name of the public GCS repository bucket.