mirror of
https://github.com/helm/helm.git
synced 2026-08-12 22:16:30 +00:00
Merge pull request #6486 from bacongobbler/fix-6452
fix(action): invalidate discovery client cache on startup
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user