Skip to content

Commit

Permalink
fix convert transforms toType field validation
Browse files Browse the repository at this point in the history
Signed-off-by: rladdukodiraghav <[email protected]>
(cherry picked from commit 5652802)
  • Loading branch information
rladdukodiraghav authored and turkenh committed Oct 18, 2023
1 parent 141e541 commit b241218
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apis/apiextensions/v1/composition_transforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func (c ConvertTransformFormat) IsValid() bool {
// A ConvertTransform converts the input into a new object whose type is supplied.
type ConvertTransform struct {
// ToType is the type of the output of this transform.
// +kubebuilder:validation:Enum=string;int;int64;bool;float64;object;list
// +kubebuilder:validation:Enum=string;int;int64;bool;float64;object;array
ToType TransformIOType `json:"toType"`

// The expected input format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func (c ConvertTransformFormat) IsValid() bool {
// A ConvertTransform converts the input into a new object whose type is supplied.
type ConvertTransform struct {
// ToType is the type of the output of this transform.
// +kubebuilder:validation:Enum=string;int;int64;bool;float64;object;list
// +kubebuilder:validation:Enum=string;int;int64;bool;float64;object;array
ToType TransformIOType `json:"toType"`

// The expected input format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down Expand Up @@ -772,7 +772,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down Expand Up @@ -1192,7 +1192,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down Expand Up @@ -1776,7 +1776,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down Expand Up @@ -2265,7 +2265,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down Expand Up @@ -2685,7 +2685,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down
6 changes: 3 additions & 3 deletions cluster/crds/apiextensions.crossplane.io_compositions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down Expand Up @@ -772,7 +772,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down Expand Up @@ -1196,7 +1196,7 @@ spec:
- bool
- float64
- object
- list
- array
type: string
required:
- toType
Expand Down

0 comments on commit b241218

Please sign in to comment.