diff --git a/pkg/action/action.go b/pkg/action/action.go index e4db942c8..1526bd2e9 100644 --- a/pkg/action/action.go +++ b/pkg/action/action.go @@ -95,7 +95,7 @@ type RESTClientGetter interface { type DebugLog func(format string, v ...interface{}) // capabilities builds a Capabilities from discovery information. -func (c *Configuration) getCapabilities() (*chartutil.Capabilities, error) { +func (c *Configuration) GetCapabilities() (*chartutil.Capabilities, error) { if c.Capabilities != nil { return c.Capabilities, nil } diff --git a/pkg/action/install.go b/pkg/action/install.go index e7b481d47..30500b880 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -209,7 +209,7 @@ func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release. // the user doesn't have to specify both i.Wait = i.Wait || i.Atomic - caps, err := i.cfg.getCapabilities() + caps, err := i.cfg.GetCapabilities() if err != nil { return nil, err } @@ -465,7 +465,7 @@ func (c *Configuration) renderResources(ch *chart.Chart, values chartutil.Values hs := []*release.Hook{} b := bytes.NewBuffer(nil) - caps, err := c.getCapabilities() + caps, err := c.GetCapabilities() if err != nil { return hs, b, "", err } diff --git a/pkg/action/uninstall.go b/pkg/action/uninstall.go index dfaa98472..a2ee925fa 100644 --- a/pkg/action/uninstall.go +++ b/pkg/action/uninstall.go @@ -169,7 +169,7 @@ func joinErrors(errs []error) string { // deleteRelease deletes the release and returns manifests that were kept in the deletion process func (u *Uninstall) deleteRelease(rel *release.Release) (string, []error) { - caps, err := u.cfg.getCapabilities() + caps, err := u.cfg.GetCapabilities() if err != nil { return rel.Manifest, []error{errors.Wrap(err, "could not get apiVersions from Kubernetes")} } diff --git a/pkg/action/upgrade.go b/pkg/action/upgrade.go index 08b638171..8083336dc 100644 --- a/pkg/action/upgrade.go +++ b/pkg/action/upgrade.go @@ -155,7 +155,7 @@ func (u *Upgrade) prepareUpgrade(name string, chart *chart.Chart, vals map[strin IsUpgrade: true, } - caps, err := u.cfg.getCapabilities() + caps, err := u.cfg.GetCapabilities() if err != nil { return nil, nil, err }