Skip to content

Commit

Permalink
filesystem: correct the pool name in the ux backend handler
Browse files Browse the repository at this point in the history
In the expandstorage handler pool name is incorrect,

Rook adds the filesystemName prefix to every datapool,
which was missing in the storageclass parameter
https://github.com/rook/rook/blob/44e96c8ab67a27121354a04b121b7f16b6a38894/pkg/operator/ceph/file/filesystem.go#L321

Signed-off-by: parth-gr <[email protected]>
  • Loading branch information
parth-gr committed Dec 5, 2024
1 parent 2e7cf01 commit 3396a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ux-backend/handlers/expandstorage/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func createCephFilesystemStorageClass(w http.ResponseWriter, r *http.Request, cl
Parameters: map[string]string{
"clusterID": namespace,
"fsName": filesystemName,
"pool": poolName,
"pool": fmt.Sprintf("%s-%s", filesystemName, poolName),
"csi.storage.k8s.io/provisioner-secret-name": "rook-csi-cephfs-provisioner",
"csi.storage.k8s.io/provisioner-secret-namespace": namespace,
"csi.storage.k8s.io/node-stage-secret-name": "rook-csi-cephfs-node",
Expand Down

0 comments on commit 3396a61

Please sign in to comment.