-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Construct Helm actions using Helm env helpers #4515
Construct Helm actions using Helm env helpers #4515
Conversation
This way we get the retrying round-tripper setup and Helm now retries some known transient errors such as the etcd leader change. Fixes k0sproject#3758 Signed-off-by: Jussi Nummelin <[email protected]>
@@ -76,6 +78,14 @@ func NewCommands(k0sVars *config.CfgVars) *Commands { | |||
} | |||
|
|||
func (hc *Commands) getActionCfg(namespace string) (*action.Configuration, error) { | |||
// Construct new helm env so we get the retrying roundtripper etc. setup | |||
// See https://github.com/helm/helm/pull/11426/commits/b5378b3a5dd435e5c364ac0cfa717112ad686bd0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also include a link to the request to make the retrying roundtripper public: helm/helm#13052.
If that's public, we could even consider to use this in k0s's kube clients as well 🤔
And we could add this depending whether we use etcd or not.
Successfully created backport PR for |
Successfully created backport PR for |
Successfully created backport PR for |
Successfully created backport PR for |
Description
This way we get the retrying round-tripper setup and Helm now retries some known transient errors such as the etcd leader change.
Fixes #3758
Type of change
How Has This Been Tested?
Checklist: