From 62fec90c192238524c15c2f1759a18dad8b94d24 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Fri, 5 Aug 2022 17:30:39 +0530 Subject: [PATCH] external: fix cluster id naming in import-external-cluster script Cluster_ID variable that we export from python script was different from what we going to use in import script so changed it Signed-off-by: parth-gr --- deploy/examples/import-external-cluster.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/examples/import-external-cluster.sh b/deploy/examples/import-external-cluster.sh index 47581228c..ccaf24ae6 100644 --- a/deploy/examples/import-external-cluster.sh +++ b/deploy/examples/import-external-cluster.sh @@ -96,11 +96,11 @@ function checkEnvVars() { } function importClusterID() { - if [ -n "$RADOS_NAMESPACE_CLUSTER_ID" ]; then - CLUSTER_ID_RBD=$(kubectl -n "$NAMESPACE" get cephblockpoolradosnamespace.ceph.rook.io/"$RADOS_NAMESPACE_CLUSTER_ID" -o jsonpath='{.status.info.clusterID}') + if [ -n "$RADOS_NAMESPACE" ]; then + CLUSTER_ID_RBD=$(kubectl -n "$NAMESPACE" get cephblockpoolradosnamespace.ceph.rook.io/"$RADOS_NAMESPACE" -o jsonpath='{.status.info.clusterID}') fi - if [ -n "$SUBVOLUME_GROUP_CLUSTER_ID" ]; then - CLUSTER_ID_CEPHFS=$(kubectl -n "$NAMESPACE" get cephfilesystemsubvolumegroup.ceph.rook.io/"$SUBVOLUME_GROUP_CLUSTER_ID" -o jsonpath='{.status.info.clusterID}') + if [ -n "$SUBVOLUME_GROUP" ]; then + CLUSTER_ID_CEPHFS=$(kubectl -n "$NAMESPACE" get cephfilesystemsubvolumegroup.ceph.rook.io/"$SUBVOLUME_GROUP" -o jsonpath='{.status.info.clusterID}') fi }