From 314a1780fa277205d911ba720e3ffa55336b100e Mon Sep 17 00:00:00 2001 From: Jay Miracola Date: Wed, 3 Jul 2024 17:21:15 -0400 Subject: [PATCH] add required to resources.patches.transforms.string.type Signed-off-by: Jay Miracola --- input/v1beta1/resources_transforms.go | 3 +-- package/input/pt.fn.crossplane.io_resources.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/input/v1beta1/resources_transforms.go b/input/v1beta1/resources_transforms.go index 632822b..510b779 100644 --- a/input/v1beta1/resources_transforms.go +++ b/input/v1beta1/resources_transforms.go @@ -230,10 +230,9 @@ const ( type StringTransform struct { // Type of the string transform to be run. - // +optional // +kubebuilder:validation:Enum=Format;Convert;TrimPrefix;TrimSuffix;Regexp // +kubebuilder:default=Format - Type StringTransformType `json:"type,omitempty"` + Type StringTransformType `json:"type"` // Format the input using a Go format string. See // https://golang.org/pkg/fmt/ for details. diff --git a/package/input/pt.fn.crossplane.io_resources.yaml b/package/input/pt.fn.crossplane.io_resources.yaml index a077022..5b781d4 100644 --- a/package/input/pt.fn.crossplane.io_resources.yaml +++ b/package/input/pt.fn.crossplane.io_resources.yaml @@ -347,6 +347,8 @@ spec: - TrimSuffix - Regexp type: string + required: + - type type: object type: description: Type of the transform to be run. @@ -705,6 +707,8 @@ spec: - TrimSuffix - Regexp type: string + required: + - type type: object type: description: Type of the transform to be run. @@ -1123,6 +1127,8 @@ spec: - TrimSuffix - Regexp type: string + required: + - type type: object type: description: Type of the transform to be run.