diff --git a/deploy/charts/rook-ceph/templates/resources.yaml b/deploy/charts/rook-ceph/templates/resources.yaml index 5f24562e0..c4361cc2e 100644 --- a/deploy/charts/rook-ceph/templates/resources.yaml +++ b/deploy/charts/rook-ceph/templates/resources.yaml @@ -7338,11 +7338,7 @@ spec: endpoint: pattern: ^https*:// type: string - required: - - endpoint type: object - required: - - pull type: object status: description: Status represents the status of an object diff --git a/deploy/examples/crds.yaml b/deploy/examples/crds.yaml index 50dcb358e..89fb58595 100644 --- a/deploy/examples/crds.yaml +++ b/deploy/examples/crds.yaml @@ -7331,11 +7331,7 @@ spec: endpoint: pattern: ^https*:// type: string - required: - - endpoint type: object - required: - - pull type: object status: description: Status represents the status of an object diff --git a/pkg/apis/ceph.rook.io/v1/types.go b/pkg/apis/ceph.rook.io/v1/types.go index 3ee12fb08..81de692ad 100755 --- a/pkg/apis/ceph.rook.io/v1/types.go +++ b/pkg/apis/ceph.rook.io/v1/types.go @@ -1568,13 +1568,13 @@ type CephObjectRealmList struct { // ObjectRealmSpec represent the spec of an ObjectRealm type ObjectRealmSpec struct { - Pull PullSpec `json:"pull"` + Pull PullSpec `json:"pull,omitempty"` } // PullSpec represents the pulling specification of a Ceph Object Storage Gateway Realm type PullSpec struct { // +kubebuilder:validation:Pattern=`^https*://` - Endpoint string `json:"endpoint"` + Endpoint string `json:"endpoint,omitempty"` } // CephObjectZoneGroup represents a Ceph Object Store Gateway Zone Group