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>
(cherry picked from commit db44ef3645)
This commit is contained in:
Madhu Rajanna authored and Mergify committed 2025-08-12 17:26:04 +00:00
1 parent c698ab260b
commit cc2df188de
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
}