Skip to content

Commit

Permalink
Merge pull request #131 from jaymiracola/validation-fix-string-transform
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanduplessis authored Jul 30, 2024
2 parents 3ad61a0 + 314a178 commit 4acf372
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions input/v1beta1/resources_transforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,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.
Expand Down
6 changes: 6 additions & 0 deletions package/input/pt.fn.crossplane.io_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ spec:
- TrimSuffix
- Regexp
type: string
required:
- type
type: object
type:
description: Type of the transform to be run.
Expand Down Expand Up @@ -734,6 +736,8 @@ spec:
- TrimSuffix
- Regexp
type: string
required:
- type
type: object
type:
description: Type of the transform to be run.
Expand Down Expand Up @@ -1167,6 +1171,8 @@ spec:
- TrimSuffix
- Regexp
type: string
required:
- type
type: object
type:
description: Type of the transform to be run.
Expand Down

0 comments on commit 4acf372

Please sign in to comment.