-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Timeout #4115
Timeout #4115
Conversation
This is by design based on the discussion in #4102. Though as I've researched this, I realize that we're using the default
Since Helm's The fact that we're using infinite waits and Would you be okay with holding on this PR and opening an issue about all the cancellation concerns in the helm operator reconciler. I think given the direction of #4102, the cancellation concerns I can think of are:
|
Since wait is not currently supported, it’s fairly harmless to allow timeout to be specified despite it doing nothing. It can be added in helm’s half implemented way just as well here as in the binary. I’m fine with reverting contexts back to TODO(). I think either approach TODO() or WithTimeout() is confusing as the context are not used. |
Perhaps I'm missing something, but what's the value in adding a configurable timeout if it does nothing? That would lead to confusion and users rightfully opening issues asking why setting the timeout doesn't work.
One of the stated purposes of The SDK |
HI @drewwells, Thank you for your contribution. 🥇
I agree with @joelanford position as well I do not think that we should add because any additional should address a need and adds real value to the project. Otherwise, it only brings confusion for end-users and maintainers as well. I mean, reduce the maintainability of the project. In this, I hope that would be fine we close this one and we open an issue to address it as suggested by @joelanford on he comment:
WDYT? Could you please open this issue? |
I hope that is fine we close this one based on the previous comments see; #4115 (comment) and #4115 (comment). however, please feel free to ping us if you think that it should be re-opened and would be very nice to get your help to track the issue. |
relates #4102
Description of the change:
Adds a timeout flag to helm operator's manager. This instructs the helm action to timeout after a set duration, default is set to 5m just like helm cli.
I updated the context passed down from reconcile. The packages being called ignore their context, so it's not currently useful for timing out those packages.
Motivation for the change:
Helm by default implements a timeout. This timeout is used when using the --wait command to have helm give up after attempting an action for a period of time. The current operator does not implement any timeout and instead returns immediately after any action.
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs