mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
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:
parent
5635e99e37
commit
a9fa108959
@ -1168,7 +1168,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, 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 {
|
if err != nil {
|
||||||
e2elog.Failf("failed to create storageclass with error %v", err)
|
e2elog.Failf("failed to create storageclass with error %v", err)
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ func createRBDStorageClass(c kubernetes.Interface, f *framework.Framework, name
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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...)
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user