Skip to content

Commit 4835ece

Browse files
committed
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: fluxcd/helm-controller#549 Signed-off-by: Hidde Beydals <hello@hidde.co>
1 parent def45c5 commit 4835ece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v1beta2/kustomization_types.go

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

config/crd/bases/kustomize.toolkit.fluxcd.io_kustomizations.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ spec:
973973
timeout:
974974
description: Timeout for validation, apply and health checking operations.
975975
Defaults to 'Interval' duration.
976-
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$
976+
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
977977
type: string
978978
validation:
979979
description: 'Deprecated: Not used in v1beta2.'

0 commit comments

Comments
 (0)