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 <paarora@redhat.com>
(cherry picked from commit c1a16d300e)
This commit is contained in:
parth-gr authored and Mergify committed 2022-08-05 17:33:38 +00:00
1 parent 395b026219
commit a21b2f9deb
1 file changed
+4 -4
+4 -4
View File
@@ -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
}