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:
parent
def45c50b3
commit
4835ece070
|
@ -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"`
|
||||
|
||||
|
|
|
@ -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.'
|
||||
|
|
Loading…
Reference in New Issue