Skip to content
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

api: allow configuration of h unit for timeouts #549

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Oct 21, 2022

Unlike the other Flux components, there are some scenarios in which a timeout of 1h (or more) is justified to be able to Helm actions which take a long time to finish.

To support this, widen the validation added in
54aee36 to allow the configuration of the h time unit again. At the cost of theoretically keeping the workers busy for a long duration of time (and thereby not processing other changes), but without causing a full denial of service.

Follow up on #533
Fixes #547
Fixes fluxcd/flux2#3227

Unlike the other Flux components, there are some scenarios in which a
timeout of 1h (or more) is justified to be able to Helm actions which
take a long time to finish.

To support this, widen the validation added in
54aee36 to allow the configuration
of the `h` time unit again. At the cost of theoretically keeping the
workers busy for a long duration of time (and thereby not processing
other changes), but without causing a full denial of service.

Signed-off-by: Hidde Beydals <hello@hidde.co>
@stefanprodan
Copy link
Member

We need to do the same in KC, the health checks would take as long as the Helm wait.

@hiddeco hiddeco merged commit e543544 into main Oct 21, 2022
@hiddeco hiddeco deleted the api-widen-timeout-validation branch October 21, 2022 12:05
hiddeco added a commit to fluxcd/kustomize-controller that referenced this pull request Oct 21, 2022
To allow waiting for `HelmRelease` resources with an exceptionally
high timeout of `1h` or more.

Related to: fluxcd/helm-controller#549

Signed-off-by: Hidde Beydals <hello@hidde.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timeout >= 60m fails to delete HelmRelease install & upgrade timeout regex prevent release uninstallation
2 participants