ceph-csi/internal/cephfs
Rakshith R b7505c29e2 rbd: check for clusterid mapping in genVolFromVolumeOptions()
This commit adds capability to genVolFromVolumeOptions() to fetch
mapped clusted-id & mon ips for mirrored PVC on secondary cluster
which may have different cluster-id.

This is required for NodeStageVolume().

We also don't need to check for mapping during volume create requests,
so it can be disabled by passing a bool checkClusterIDMapping as false.

GetMonsAndClusterID() is modified to accept bool checkClusterIDMapping
based on which clustermapping is checked to fetch mapped cluster-id and
mon-ips.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 9d1e98ca60)
2021-09-14 12:56:12 +00:00
..
cephfs_util.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
clone_test.go cleanup: modifies the error caused due to merged PRs 2021-07-22 18:15:48 +00:00
clone.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
controllerserver.go cleanup: resolves cyclop linter issue 2021-07-22 18:15:48 +00:00
driver.go util: call WriteCephConfig() in cephcsi.go 2021-09-09 13:32:12 +00:00
errors.go cleanup: resolve godot linter 2021-07-13 06:50:03 +00:00
fsjournal.go cleanup: resolves cyclop linter issue 2021-07-22 18:15:48 +00:00
identityserver.go internal: reformat long lines in internal/cephfs package to 120 chars 2021-06-28 14:43:49 +00:00
nodeserver.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
snapshot.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
util.go rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 12:56:12 +00:00
volume.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
volumemounter.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
volumeoptions.go cephfs: support selinux mount options 2021-08-05 08:37:52 +00:00