e2e: use proper variable name for rbd mount options

The variable naming for rbd mount options has been changed
to rbdMountOptions to be consistent with other variable naming schema

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2021-06-10 16:46:42 +05:30 committed by mergify[bot]
parent 921975f45e
commit b082689f69
3 changed files with 3 additions and 3 deletions

View File

@ -911,7 +911,7 @@ var _ = Describe("RBD", func() {
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass with error %v", err) e2elog.Failf("failed to delete storageclass with error %v", err)
} }
err = createRBDStorageClass(f.ClientSet, f, map[string]string{rbdmountOptions: "debug,invalidOption"}, nil, deletePolicy) err = createRBDStorageClass(f.ClientSet, f, map[string]string{rbdMountOptions: "debug,invalidOption"}, nil, deletePolicy)
if err != nil { if err != nil {
e2elog.Failf("failed to create storageclass with error %v", err) e2elog.Failf("failed to create storageclass with error %v", err)
} }

View File

@ -68,7 +68,7 @@ func createRBDStorageClass(c kubernetes.Interface, f *framework.Framework, scOpt
} }
// comma separated mount options // comma separated mount options
if opt, ok := scOptions[rbdmountOptions]; ok { if opt, ok := scOptions[rbdMountOptions]; ok {
mOpt := strings.Split(opt, ",") mOpt := strings.Split(opt, ",")
sc.MountOptions = append(sc.MountOptions, mOpt...) sc.MountOptions = append(sc.MountOptions, mOpt...)
} }

View File

@ -35,7 +35,7 @@ const (
vaultPassphrasePath = "ceph-csi/" vaultPassphrasePath = "ceph-csi/"
rookToolBoxPodLabel = "app=rook-ceph-tools" rookToolBoxPodLabel = "app=rook-ceph-tools"
rbdmountOptions = "mountOptions" rbdMountOptions = "mountOptions"
retainPolicy = v1.PersistentVolumeReclaimRetain retainPolicy = v1.PersistentVolumeReclaimRetain
// deletePolicy is the default policy in E2E. // deletePolicy is the default policy in E2E.