File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -231,10 +231,9 @@ const (
231
231
type StringTransform struct {
232
232
233
233
// Type of the string transform to be run.
234
- // +optional
235
234
// +kubebuilder:validation:Enum=Format;Convert;TrimPrefix;TrimSuffix;Regexp
236
235
// +kubebuilder:default=Format
237
- Type StringTransformType `json:"type,omitempty "`
236
+ Type StringTransformType `json:"type"`
238
237
239
238
// Format the input using a Go format string. See
240
239
// https://golang.org/pkg/fmt/ for details.
Original file line number Diff line number Diff line change @@ -361,6 +361,8 @@ spec:
361
361
- TrimSuffix
362
362
- Regexp
363
363
type : string
364
+ required :
365
+ - type
364
366
type : object
365
367
type :
366
368
description : Type of the transform to be run.
@@ -734,6 +736,8 @@ spec:
734
736
- TrimSuffix
735
737
- Regexp
736
738
type : string
739
+ required :
740
+ - type
737
741
type : object
738
742
type :
739
743
description : Type of the transform to be run.
@@ -1167,6 +1171,8 @@ spec:
1167
1171
- TrimSuffix
1168
1172
- Regexp
1169
1173
type : string
1174
+ required :
1175
+ - type
1170
1176
type : object
1171
1177
type :
1172
1178
description : Type of the transform to be run.
You can’t perform that action at this time.
0 commit comments