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 <partharora1010@gmail.com>
This commit is contained in:
parth-gr committed 2026-07-21 19:52:38 +05:30
1 parent 56153b344f
commit ce3a2c77ae
1 file changed
+9 -7
+9 -7
View File
@@ -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