Merge pull request #6486 from bacongobbler/fix-6452

fix(action): invalidate discovery client cache on startup
This commit is contained in:
Matthew Fisher
2019-09-24 11:29:28 -07:00
committed by GitHub

View File

@@ -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")