Merge pull request #6486 from bacongobbler/fix-6452

fix(action): invalidate discovery client cache on startup
pull/6496/head
Matthew Fisher 5 years ago committed by GitHub
commit faa9048580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save