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 5635e99e37
commit a9fa108959
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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