Skip to content

Commit 314a178

Browse files
committed
add required to resources.patches.transforms.string.type
Signed-off-by: Jay Miracola <jaymiracola@gmail.com>
1 parent 4476a5b commit 314a178

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

input/v1beta1/resources_transforms.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,9 @@ const (
230230
type StringTransform struct {
231231

232232
// Type of the string transform to be run.
233-
// +optional
234233
// +kubebuilder:validation:Enum=Format;Convert;TrimPrefix;TrimSuffix;Regexp
235234
// +kubebuilder:default=Format
236-
Type StringTransformType `json:"type,omitempty"`
235+
Type StringTransformType `json:"type"`
237236

238237
// Format the input using a Go format string. See
239238
// https://golang.org/pkg/fmt/ for details.

package/input/pt.fn.crossplane.io_resources.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ spec:
347347
- TrimSuffix
348348
- Regexp
349349
type: string
350+
required:
351+
- type
350352
type: object
351353
type:
352354
description: Type of the transform to be run.
@@ -705,6 +707,8 @@ spec:
705707
- TrimSuffix
706708
- Regexp
707709
type: string
710+
required:
711+
- type
708712
type: object
709713
type:
710714
description: Type of the transform to be run.
@@ -1123,6 +1127,8 @@ spec:
11231127
- TrimSuffix
11241128
- Regexp
11251129
type: string
1130+
required:
1131+
- type
11261132
type: object
11271133
type:
11281134
description: Type of the transform to be run.

0 commit comments

Comments
 (0)