Skip to content

Commit

Permalink
CRD: Remove x-kubernetes-preserve-unknown-fields from volumeClaimTemp…
Browse files Browse the repository at this point in the history
…lates (#4768) (#4772)
  • Loading branch information
barkbay authored Aug 19, 2021
1 parent 3fad9ca commit ca98b0c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion config/crds/v1/all-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3894,7 +3894,6 @@ spec:
type: object
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
required:
- name
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8057,7 +8057,6 @@ spec:
type: object
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
required:
- name
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7988,7 +7988,6 @@ spec:
type: object
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
required:
- name
type: object
Expand Down
4 changes: 1 addition & 3 deletions config/crds/v1beta1/patches/elasticsearch-patches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,4 @@
- op: remove
path: /spec/validation/openAPIV3Schema/properties/spec/properties/nodeSets/items/properties/config/x-kubernetes-preserve-unknown-fields
- op: remove
path: /spec/validation/openAPIV3Schema/properties/spec/properties/nodeSets/items/properties/podTemplate/x-kubernetes-preserve-unknown-fields
- op: remove
path: /spec/validation/openAPIV3Schema/properties/spec/properties/nodeSets/items/properties/volumeClaimTemplates/x-kubernetes-preserve-unknown-fields
path: /spec/validation/openAPIV3Schema/properties/spec/properties/nodeSets/items/properties/podTemplate/x-kubernetes-preserve-unknown-fields
Original file line number Diff line number Diff line change
Expand Up @@ -3927,7 +3927,6 @@ spec:
type: object
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
required:
- name
type: object
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/elasticsearch/v1/elasticsearch_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ type NodeSet struct {
// Every claim in this list must have a matching volumeMount in one of the containers defined in the PodTemplate.
// Items defined here take precedence over any default claims added by the operator with the same name.
// +kubebuilder:validation:Optional
// +kubebuilder:pruning:PreserveUnknownFields
VolumeClaimTemplates []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
}

Expand Down

0 comments on commit ca98b0c

Please sign in to comment.