Skip to content

api: allow configuration of h unit for timeouts#749

Merged
stefanprodan merged 1 commit intomainfrom
api-widen-timeout-validation
Oct 21, 2022
Merged

api: allow configuration of h unit for timeouts#749
stefanprodan merged 1 commit intomainfrom
api-widen-timeout-validation

Conversation

@hiddeco
Copy link
Copy Markdown
Member

@hiddeco hiddeco commented Oct 21, 2022

To allow waiting for HelmRelease resources with an exceptionally high timeout of 1h or more.

Related to: fluxcd/helm-controller#549

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>
@hiddeco
Copy link
Copy Markdown
Member Author

hiddeco commented Oct 21, 2022

@stefanprodan wondering if in a future patch it would be better to create separate values for some of the timeouts, as my assumption is that a validation and/or apply timeout should not take more than a couple minutes. Where as a health check might take longer.

In extend to this, I am wondering if it would not be better to take note of the timestamp at which the health checks start, to then repetitively run health checks while re-queuing until they are healthy and/or it runs into the timeout compared to the timestamp. This would improve continuity.

@hiddeco hiddeco requested a review from stefanprodan October 21, 2022 12:31
@stefanprodan
Copy link
Copy Markdown
Member

Having a separate timeout for the health check makes sense, maybe waitTimeout or something like that.

@stefanprodan stefanprodan merged commit 85c9728 into main Oct 21, 2022
@stefanprodan stefanprodan deleted the api-widen-timeout-validation branch October 21, 2022 14:22
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.

2 participants