external: user userID and userKey for rbd

csi never used adminID and adminKey for the
rbd secrets, This currently looks to be a
bug where we are creating the secret with userID
and userKey but updating it with adminID and
adminKey, This commits update the script to
use userID and userKey for RBD secrets.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna committed 2025-08-12 09:55:35 +02:00
1 parent 6fc530b77f
commit db44ef3645
1 file changed
+2 -2
+2 -2
View File
@@ -220,7 +220,7 @@ function importCsiRBDNodeSecret() {
patch \
secret \
"rook-$CSI_RBD_NODE_SECRET_NAME" \
-p "{\"stringData\":{\"adminID\":\"$userID\",\"adminKey\":\"$CSI_CEPHFS_NODE_SECRET\"}}"
-p "{\"stringData\":{\"userID\":\"$userID\",\"userKey\":\"$CSI_CEPHFS_NODE_SECRET\"}}"
fi
}
@@ -241,7 +241,7 @@ function importCsiRBDProvisionerSecret() {
patch \
secret \
"rook-$CSI_RBD_PROVISIONER_SECRET_NAME" \
-p "{\"stringData\":{\"adminID\":\"$userID\",\"adminKey\":\"$CSI_CEPHFS_NODE_SECRET\"}}"
-p "{\"stringData\":{\"userID\":\"$userID\",\"userKey\":\"$CSI_CEPHFS_NODE_SECRET\"}}"
fi
}