From 8c9351921f2042f01cecf2a881173117077dc3c7 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Tue, 5 Mar 2024 18:38:24 +0530 Subject: [PATCH] external: add replicated 3 pool for the rbd sc till the csi pr get fix https://github.com/ceph/ceph-csi/pull/4459 we can still make use of topology by adding the replicated 3 pool once the pr gets merged will revert this commit Signed-off-by: parth-gr --- deploy/examples/create-external-cluster-resources.py | 1 + deploy/examples/import-external-cluster.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/deploy/examples/create-external-cluster-resources.py b/deploy/examples/create-external-cluster-resources.py index 511daf5bf4362..afeab6cb5918e 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -1942,6 +1942,7 @@ def gen_json_out(self): "topologyPools": self.convert_comma_seprated_to_array( self.out_map["TOPOLOGY_POOLS"] ), + "pool": self.out_map["RBD_POOL_NAME"], "csi.storage.k8s.io/provisioner-secret-name": f"rook-{self.out_map['CSI_RBD_PROVISIONER_SECRET_NAME']}", "csi.storage.k8s.io/controller-expand-secret-name": f"rook-{self.out_map['CSI_RBD_PROVISIONER_SECRET_NAME']}", "csi.storage.k8s.io/node-stage-secret-name": f"rook-{self.out_map['CSI_RBD_NODE_SECRET_NAME']}", diff --git a/deploy/examples/import-external-cluster.sh b/deploy/examples/import-external-cluster.sh index a956f75aedc1f..ffd3cbf3457da 100644 --- a/deploy/examples/import-external-cluster.sh +++ b/deploy/examples/import-external-cluster.sh @@ -334,6 +334,7 @@ metadata: provisioner: $RBD_PROVISIONER parameters: clusterID: $CLUSTER_ID_RBD + pool: $RBD_POOL_NAME imageFormat: "2" imageFeatures: $ROOK_RBD_FEATURES topologyConstrainedPools: |