File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,16 @@ type KustomizationSpec struct {
47
47
Decryption * Decryption `json:"decryption,omitempty"`
48
48
49
49
// The interval at which to reconcile the Kustomization.
50
+ // +kubebuilder:validation:Type=string
51
+ // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
50
52
// +required
51
53
Interval metav1.Duration `json:"interval"`
52
54
53
55
// The interval at which to retry a previously failed reconciliation.
54
56
// When not specified, the controller uses the KustomizationSpec.Interval
55
57
// value to retry failures.
58
+ // +kubebuilder:validation:Type=string
59
+ // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
56
60
// +optional
57
61
RetryInterval * metav1.Duration `json:"retryInterval,omitempty"`
58
62
@@ -130,6 +134,8 @@ type KustomizationSpec struct {
130
134
131
135
// Timeout for validation, apply and health checking operations.
132
136
// Defaults to 'Interval' duration.
137
+ // +kubebuilder:validation:Type=string
138
+ // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m))+$"
133
139
// +optional
134
140
Timeout * metav1.Duration `json:"timeout,omitempty"`
135
141
Original file line number Diff line number Diff line change @@ -689,6 +689,7 @@ spec:
689
689
type : array
690
690
interval :
691
691
description : The interval at which to reconcile the Kustomization.
692
+ pattern : ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
692
693
type : string
693
694
kubeConfig :
694
695
description : The KubeConfig for reconciling the Kustomization on a
@@ -928,6 +929,7 @@ spec:
928
929
description : The interval at which to retry a previously failed reconciliation.
929
930
When not specified, the controller uses the KustomizationSpec.Interval
930
931
value to retry failures.
932
+ pattern : ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
931
933
type : string
932
934
serviceAccountName :
933
935
description : The name of the Kubernetes service account to impersonate
@@ -972,6 +974,7 @@ spec:
972
974
timeout :
973
975
description : Timeout for validation, apply and health checking operations.
974
976
Defaults to 'Interval' duration.
977
+ pattern : ^([0-9]+(\.[0-9]+)?(ms|s|m))+$
975
978
type : string
976
979
validation :
977
980
description : ' Deprecated: Not used in v1beta2.'
You can’t perform that action at this time.
0 commit comments