From cc2df188dea2b859052b017cb3e00a9000a6f1f1 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 12 Aug 2025 09:49:23 +0200 Subject: [PATCH] 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 (cherry picked from commit db44ef3645be2634f6a5cdce8b7d5d4801bdfb0f) --- deploy/examples/import-external-cluster.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/examples/import-external-cluster.sh b/deploy/examples/import-external-cluster.sh index 748c03ba8..19c08ceeb 100644 --- a/deploy/examples/import-external-cluster.sh +++ b/deploy/examples/import-external-cluster.sh @@ -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 }