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 @@ -230,10 +230,9 @@ const (
230
230
type StringTransform struct {
231
231
232
232
// Type of the string transform to be run.
233
- // +optional
234
233
// +kubebuilder:validation:Enum=Format;Convert;TrimPrefix;TrimSuffix;Regexp
235
234
// +kubebuilder:default=Format
236
- Type StringTransformType `json:"type,omitempty "`
235
+ Type StringTransformType `json:"type"`
237
236
238
237
// Format the input using a Go format string. See
239
238
// https://golang.org/pkg/fmt/ for details.
Original file line number Diff line number Diff line change @@ -347,6 +347,8 @@ spec:
347
347
- TrimSuffix
348
348
- Regexp
349
349
type : string
350
+ required :
351
+ - type
350
352
type : object
351
353
type :
352
354
description : Type of the transform to be run.
@@ -705,6 +707,8 @@ spec:
705
707
- TrimSuffix
706
708
- Regexp
707
709
type : string
710
+ required :
711
+ - type
708
712
type : object
709
713
type :
710
714
description : Type of the transform to be run.
@@ -1123,6 +1127,8 @@ spec:
1123
1127
- TrimSuffix
1124
1128
- Regexp
1125
1129
type : string
1130
+ required :
1131
+ - type
1126
1132
type : object
1127
1133
type :
1128
1134
description : Type of the transform to be run.
You can’t perform that action at this time.
0 commit comments