diff --git a/pkg/action/action.go b/pkg/action/action.go index 7ae18779f..f5ba24ba7 100644 --- a/pkg/action/action.go +++ b/pkg/action/action.go @@ -91,6 +91,8 @@ func (c *Configuration) getCapabilities() (*chartutil.Capabilities, error) { if err != nil { return nil, errors.Wrap(err, "could not get Kubernetes discovery client") } + // force a discovery cache invalidation to always fetch the latest server version/capabilities. + dc.Invalidate() kubeVersion, err := dc.ServerVersion() if err != nil { return nil, errors.Wrap(err, "could not get server version from Kubernetes")