Add timeout flag to repo add and update commands#30900
Conversation
|
Why would you want to push this out to Helm 4? IMO this is nothing that needs to wait. It's a non-breaking change. We are really suffering from this. |
scottrigby
left a comment
There was a problem hiding this comment.
#12952 is a bug that affects users when Helm HTTP repos are sufficiently large. To address the error, users should be able to specify a timeout in some way. This PR is a proposal for how to fix that bug.
Process note
Why would you want to push this out to Helm 4? IMO this is nothing that needs to wait. It's a non-breaking change. We are really suffering from this.
Robert is right that this should go into Helm 4 first. That doesn't necessarily mean it should not be backported to Helm 3 though. We are currently in a feature freeze for Helm 3, but we are supporting bug and security fixes according to this plan https://github.com/helm/community/blob/main/hips/hip-0012.md#maintaining-helm-3.
So the process is you should change the base branch of this PR to main (where Helm 4 is being developed). Once merged into main, big fixes can be backported to Helm 3 by opening a new PR against the dev-v3 branch.
|
Thanks @scottrigby, I'll rebase the PR. |
|
I rebased and changed the base branch. |
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com> # Conflicts: # pkg/cmd/repo_update.go
Backport of helm#30900 to v3. (cherry picked from commit d448cf1) Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
What this PR does / why we need it:
Adds
--timeoutflags torepo addandrepo upcommands.Fixes: #12952
Special notes for your reviewer:
This PR supersedes #13185. Adding an environment variable is not ideal IMO. Using CLI flag is more appropriate and consistent with what other commands do.
If applicable:
docs neededlabel should be applied if so)