api: allow configuration of `h` unit for timeouts

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

Related to: https://github.com/fluxcd/helm-controller/pull/549

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2022-10-21 12:24:30 +00:00
parent def45c50b3
commit 4835ece070
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ type KustomizationSpec struct {
// Timeout for validation, apply and health checking operations.
// Defaults to 'Interval' duration.
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m))+$"
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
// +optional
Timeout *metav1.Duration `json:"timeout,omitempty"`

View File

@ -973,7 +973,7 @@ spec:
timeout:
description: Timeout for validation, apply and health checking operations.
Defaults to 'Interval' duration.
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
type: string
validation:
description: 'Deprecated: Not used in v1beta2.'