Skip to content

Commit

Permalink
CLOUD-735: Add preserveUnknownFields to CRD (#1200)
Browse files Browse the repository at this point in the history
Co-authored-by: Viacheslav Sarzhan <slava.sarzhan@percona.com>
  • Loading branch information
egegunes and hors committed Oct 13, 2022
1 parent 2c66986 commit 1f650c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: CustomResourceDefinition
metadata:
name: perconaxtradbclusters.pxc.percona.com
spec:
preserveUnknownFields: false
group: pxc.percona.com
names:
kind: PerconaXtraDBCluster
Expand Down Expand Up @@ -16652,6 +16653,7 @@ spec:
type: string
type: object
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true
subresources:
Expand Down
2 changes: 2 additions & 0 deletions deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: CustomResourceDefinition
metadata:
name: perconaxtradbclusters.pxc.percona.com
spec:
preserveUnknownFields: false
group: pxc.percona.com
names:
kind: PerconaXtraDBCluster
Expand Down Expand Up @@ -16652,6 +16653,7 @@ spec:
type: string
type: object
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true
subresources:
Expand Down
2 changes: 2 additions & 0 deletions deploy/cw-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: CustomResourceDefinition
metadata:
name: perconaxtradbclusters.pxc.percona.com
spec:
preserveUnknownFields: false
group: pxc.percona.com
names:
kind: PerconaXtraDBCluster
Expand Down Expand Up @@ -16652,6 +16653,7 @@ spec:
type: string
type: object
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true
subresources:
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/pxc/v1/pxc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ type AppStatus struct {
// PerconaXtraDBCluster is the Schema for the perconaxtradbclusters API
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:resource:shortName="pxc";"pxcs"
// +kubebuilder:printcolumn:name="Endpoint",type="string",JSONPath=".status.host"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.state"
Expand Down

0 comments on commit 1f650c5

Please sign in to comment.