From 76fa776795745be801e3041e85348720cd6ce7cc Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Wed, 2 Oct 2024 10:25:03 -0700 Subject: [PATCH] rgw: change CephObjectZone.spec.{dataPool,metadataPool} to optional These fields must be optional in order to allow usage of pre-existing pools managed by CephBlockPool CR(s). Signed-off-by: Joshua Hoblitt --- Documentation/CRDs/specification.md | 4 ++++ deploy/charts/rook-ceph/templates/resources.yaml | 2 -- deploy/examples/crds.yaml | 2 -- pkg/apis/ceph.rook.io/v1/types.go | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Documentation/CRDs/specification.md b/Documentation/CRDs/specification.md index ebd043d22..9a1efffc7 100644 --- a/Documentation/CRDs/specification.md +++ b/Documentation/CRDs/specification.md @@ -2180,6 +2180,7 @@ PoolSpec +(Optional)

The metadata pool settings

@@ -2193,6 +2194,7 @@ PoolSpec +(Optional)

The data pool settings

@@ -10367,6 +10369,7 @@ PoolSpec +(Optional)

The metadata pool settings

@@ -10380,6 +10383,7 @@ PoolSpec +(Optional)

The data pool settings

diff --git a/deploy/charts/rook-ceph/templates/resources.yaml b/deploy/charts/rook-ceph/templates/resources.yaml index 0092ad799..bd2989590 100644 --- a/deploy/charts/rook-ceph/templates/resources.yaml +++ b/deploy/charts/rook-ceph/templates/resources.yaml @@ -13323,8 +13323,6 @@ spec: description: The display name for the ceph users type: string required: - - dataPool - - metadataPool - zoneGroup type: object status: diff --git a/deploy/examples/crds.yaml b/deploy/examples/crds.yaml index aa8759c17..0d57c5108 100644 --- a/deploy/examples/crds.yaml +++ b/deploy/examples/crds.yaml @@ -13311,8 +13311,6 @@ spec: description: The display name for the ceph users type: string required: - - dataPool - - metadataPool - zoneGroup type: object status: diff --git a/pkg/apis/ceph.rook.io/v1/types.go b/pkg/apis/ceph.rook.io/v1/types.go index d06c20081..170fb237f 100755 --- a/pkg/apis/ceph.rook.io/v1/types.go +++ b/pkg/apis/ceph.rook.io/v1/types.go @@ -2128,10 +2128,12 @@ type ObjectZoneSpec struct { ZoneGroup string `json:"zoneGroup"` // The metadata pool settings + // +optional // +nullable MetadataPool PoolSpec `json:"metadataPool"` // The data pool settings + // +optional // +nullable DataPool PoolSpec `json:"dataPool"`