File tree 5 files changed +27
-19
lines changed
5 files changed +27
-19
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ type KustomizationSpec struct {
45
45
// +optional
46
46
Decryption * Decryption `json:"decryption,omitempty"`
47
47
48
- // The interval at which to reconcile the kustomization .
48
+ // The interval at which to reconcile the Kustomization .
49
49
// +required
50
50
Interval metav1.Duration `json:"interval"`
51
51
@@ -54,10 +54,11 @@ type KustomizationSpec struct {
54
54
// +optional
55
55
KubeConfig * KubeConfig `json:"kubeConfig,omitempty"`
56
56
57
- // Path to the directory containing the kustomization file.
58
- // +kubebuilder:validation:Pattern="^\\./"
59
- // +required
60
- Path string `json:"path"`
57
+ // Path to the directory containing the kustomization.yaml file, or the
58
+ // set of plain YAMLs a kustomization.yaml should be generated for.
59
+ // Defaults to 'None', which translates to the root path of the SourceRef.
60
+ // +optional
61
+ Path string `json:"path,omitempty"`
61
62
62
63
// Prune enables garbage collection.
63
64
// +required
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ spec:
135
135
type : object
136
136
type : array
137
137
interval :
138
- description : The interval at which to reconcile the kustomization .
138
+ description : The interval at which to reconcile the Kustomization .
139
139
type : string
140
140
kubeConfig :
141
141
description : The KubeConfig for reconciling the Kustomization on a
@@ -159,8 +159,10 @@ spec:
159
159
type : object
160
160
type : object
161
161
path :
162
- description : Path to the directory containing the kustomization file.
163
- pattern : ^\./
162
+ description : Path to the directory containing the kustomization.yaml
163
+ file, or the set of plain YAMLs a kustomization.yaml should be generated
164
+ for. Defaults to 'None', which translates to the root path of the
165
+ SourceRef.
164
166
type : string
165
167
prune :
166
168
description : Prune enables garbage collection.
@@ -219,7 +221,6 @@ spec:
219
221
type : string
220
222
required :
221
223
- interval
222
- - path
223
224
- prune
224
225
- sourceRef
225
226
type : object
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ Kubernetes meta/v1.Duration
108
108
</em >
109
109
</td >
110
110
<td >
111
- <p >The interval at which to reconcile the kustomization .</p >
111
+ <p >The interval at which to reconcile the Kustomization .</p >
112
112
</td >
113
113
</tr >
114
114
<tr >
@@ -134,7 +134,10 @@ string
134
134
</em >
135
135
</td >
136
136
<td >
137
- <p >Path to the directory containing the kustomization file.</p >
137
+ <em >(Optional)</em >
138
+ <p >Path to the directory containing the kustomization.yaml file, or the
139
+ set of plain YAMLs a kustomization.yaml should be generated for.
140
+ Defaults to &lsquo ; None&rsquo ; , which translates to the root path of the SourceRef.</p >
138
141
</td >
139
142
</tr >
140
143
<tr >
@@ -609,7 +612,7 @@ Kubernetes meta/v1.Duration
609
612
</em >
610
613
</td >
611
614
<td >
612
- <p >The interval at which to reconcile the kustomization .</p >
615
+ <p >The interval at which to reconcile the Kustomization .</p >
613
616
</td >
614
617
</tr >
615
618
<tr >
@@ -635,7 +638,10 @@ string
635
638
</em >
636
639
</td >
637
640
<td >
638
- <p >Path to the directory containing the kustomization file.</p >
641
+ <em >(Optional)</em >
642
+ <p >Path to the directory containing the kustomization.yaml file, or the
643
+ set of plain YAMLs a kustomization.yaml should be generated for.
644
+ Defaults to &lsquo ; None&rsquo ; , which translates to the root path of the SourceRef.</p >
639
645
</td >
640
646
</tr >
641
647
<tr >
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ type KustomizationSpec struct {
30
30
KubeConfig *KubeConfig ` json:"kubeConfig,omitempty"`
31
31
32
32
// Path to the directory containing the kustomization file.
33
- // +kubebuilder:validation:Pattern="^\\./"
34
33
// +required
35
34
Path string ` json:"path"`
36
35
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type KustomizationSpec struct {
21
21
// +optional
22
22
Decryption *Decryption ` json:"decryption,omitempty"`
23
23
24
- // The interval at which to apply the kustomization .
24
+ // The interval at which to reconcile the Kustomization .
25
25
// +required
26
26
Interval metav1.Duration ` json:"interval"`
27
27
@@ -30,10 +30,11 @@ type KustomizationSpec struct {
30
30
// +optional
31
31
KubeConfig *KubeConfig ` json:"kubeConfig,omitempty"`
32
32
33
- // Path to the directory containing the kustomization.yaml file.
34
- // +kubebuilder:validation:Pattern="^\\./"
35
- // +required
36
- Path string ` json:"path"`
33
+ // Path to the directory containing the kustomization.yaml file, or the
34
+ // set of plain YAMLs a kustomization.yaml should be generated for.
35
+ // Defaults to 'None', which translates to the root path of the SourceRef.
36
+ // +optional
37
+ Path string ` json:"path,omitempty"`
37
38
38
39
// Enables garbage collection.
39
40
// +required
You can’t perform that action at this time.
0 commit comments