Skip to content

Commit af091bf

Browse files
authored
Merge pull request #559 from laozc/validation
Allow 'h' in HelmRelease timeout field
2 parents 5be76a3 + 4b56a39 commit af091bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v2beta1/helmrelease_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ type HelmReleaseSpec struct {
123123
// Timeout is the time to wait for any individual Kubernetes operation (like Jobs
124124
// for hooks) during the performance of a Helm action. Defaults to '5m0s'.
125125
// +kubebuilder:validation:Type=string
126-
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m))+$"
126+
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
127127
// +optional
128128
Timeout *metav1.Duration `json:"timeout,omitempty"`
129129

config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ spec:
584584
description: Timeout is the time to wait for any individual Kubernetes
585585
operation (like Jobs for hooks) during the performance of a Helm
586586
action. Defaults to '5m0s'.
587-
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$
587+
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
588588
type: string
589589
uninstall:
590590
description: Uninstall holds the configuration for Helm uninstall

0 commit comments

Comments
 (0)