Skip to content

Commit 85c9728

Browse files
authored
Merge pull request #749 from fluxcd/api-widen-timeout-validation
api: allow configuration of `h` unit for timeouts
2 parents def45c5 + 4835ece commit 85c9728

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)