From ce3a2c77aed2831e3b07ac890bb66fce3b0df5f8 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Tue, 14 Jul 2026 18:12:49 +0530 Subject: [PATCH] external: update the csi secrets ordering create the csi secret before creating the mon cm as the cluster controller will look for the csi secrets for creating client profile Signed-off-by: parth-gr --- deploy/examples/import-external-cluster.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/deploy/examples/import-external-cluster.sh b/deploy/examples/import-external-cluster.sh index 48748d299..630a4995f 100644 --- a/deploy/examples/import-external-cluster.sh +++ b/deploy/examples/import-external-cluster.sh @@ -469,13 +469,8 @@ eof ######## checkEnvVars createClusterNamespace -importSecret -importConfigMap -createInputCommadConfigMap -# the order of creating the svg and rns is important, -# the svg and rns controller is dependent on the ceph health, -# so first we should create the mon secret to get the cephcluster `health ok` -importClusterID +# create the csi secret before creating the mon cm +# as the cluster controller will look for the csi secrets for creating client profile if [ -n "$CSI_RBD_NODE_SECRET_NAME" ] && [ -n "$CSI_RBD_NODE_SECRET" ]; then importCsiRBDNodeSecret fi @@ -491,6 +486,13 @@ fi if [ -n "$CSI_CEPHFS_PROVISIONER_SECRET_NAME" ] && [ -n "$CSI_CEPHFS_PROVISIONER_SECRET" ]; then importCsiCephFSProvisionerSecret fi +importSecret +importConfigMap +createInputCommadConfigMap +# the order of creating the svg and rns is important, +# the svg and rns controller is dependent on the ceph health, +# so first we should create the mon secret to get the cephcluster `health ok` +importClusterID if [ -n "$RBD_POOL_NAME" ]; then if [ -n "$RBD_METADATA_EC_POOL_NAME" ]; then createECRBDStorageClass