Skip to content
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
apply k8s PreserveUnknownFields into API
  • Loading branch information
Daniel-Fan committed Jul 17, 2021
commit c592ad4b0964ae28cc315dee5a875175fe7e1b81
1 change: 1 addition & 0 deletions api/v1alpha1/operandrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type Operand struct {
InstanceName string `json:"instanceName,omitempty"`
// Spec is used when users want to deploy multiple custom resources.
// It is the configuration map of custom resource.
// +kubebuilder:pruning:PreserveUnknownFields
// +nullable
// +optional
Spec *runtime.RawExtension `json:"spec,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions bundle/manifests/operator.ibm.com_operandrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ spec:
resource.
nullable: true
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- name
type: object
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/operator.ibm.com_operandrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ spec:
description: Spec is used when users want to deploy multiple custom resources. It is the configuration map of custom resource.
nullable: true
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- name
type: object
Expand Down