Skip to content

Commit

Permalink
Add preserve unknown fields to fit Kubernetes' exception to openapi t…
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Mar 17, 2022
1 parent 55fa089 commit 6ecd63f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Param struct {

// Defaults to null.
// +optional
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
Value *ParamValue `json:"value,omitempty"`

Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Param struct {

// Defaults to null.
// +optional
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
Value *ParamValue `json:"value,omitempty"`

Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Param struct {

// Defaults to null.
// +optional
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
Value *ParamValue `json:"value,omitempty"`

Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/ibmcloud.ibm.com_bindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down Expand Up @@ -197,6 +198,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down Expand Up @@ -330,6 +332,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/ibmcloud.ibm.com_services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down Expand Up @@ -192,6 +193,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down Expand Up @@ -327,6 +329,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down Expand Up @@ -441,6 +444,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down Expand Up @@ -575,6 +579,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down Expand Up @@ -681,6 +686,7 @@ spec:
type: string
value:
description: Defaults to null.
x-kubernetes-preserve-unknown-fields: true
valueFrom:
description: Source for the value. Cannot be used if value is
not empty.
Expand Down

0 comments on commit 6ecd63f

Please sign in to comment.