diff --git a/cluster/charts/rook-ceph/templates/resources.yaml b/cluster/charts/rook-ceph/templates/resources.yaml index d887d7a6e..8eed72358 100644 --- a/cluster/charts/rook-ceph/templates/resources.yaml +++ b/cluster/charts/rook-ceph/templates/resources.yaml @@ -1887,6 +1887,7 @@ spec: config: additionalProperties: type: string + nullable: true type: object x-kubernetes-preserve-unknown-fields: true fullpath: @@ -1921,6 +1922,7 @@ spec: config: additionalProperties: type: string + nullable: true type: object x-kubernetes-preserve-unknown-fields: true fullpath: diff --git a/cluster/examples/kubernetes/ceph/crds.yaml b/cluster/examples/kubernetes/ceph/crds.yaml index 71e725d6e..303d8a1c6 100644 --- a/cluster/examples/kubernetes/ceph/crds.yaml +++ b/cluster/examples/kubernetes/ceph/crds.yaml @@ -1887,6 +1887,7 @@ spec: config: additionalProperties: type: string + nullable: true type: object x-kubernetes-preserve-unknown-fields: true fullpath: @@ -1921,6 +1922,7 @@ spec: config: additionalProperties: type: string + nullable: true type: object x-kubernetes-preserve-unknown-fields: true fullpath: diff --git a/pkg/apis/ceph.rook.io/v1/types.go b/pkg/apis/ceph.rook.io/v1/types.go index a7ee4305b..5685a4c74 100755 --- a/pkg/apis/ceph.rook.io/v1/types.go +++ b/pkg/apis/ceph.rook.io/v1/types.go @@ -1936,6 +1936,7 @@ type Device struct { // +optional FullPath string `json:"fullpath,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields + // +nullable // +optional Config map[string]string `json:"config,omitempty"` }