Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-1.13] Backport fix convert transforms toType field validation #106

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading