test: use mounter kernal instead of fuse

this kernal version is greater than 5.11 let's
use mounter kernal instead of fuse.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit abc272c91c)
This commit is contained in:
subhamkrai authored and Mergify committed 2024-02-06 14:17:32 +00:00
1 parent 2383442d16
commit 6887958c67
1 file changed
+11 -3
+11 -3
View File
@@ -242,6 +242,14 @@ spec:
databaseSizeMB: "1024"
`
}
if m.settings.ConnectionsEncrypted {
clusterSpec += `
csi:
cephfs:
kernelMountOptions: ms_mode=secure
`
}
return clusterSpec + `
priorityClassNames:
mon: system-node-critical
@@ -349,9 +357,9 @@ parameters:
csi.storage.k8s.io/node-stage-secret-namespace: ` + m.settings.Namespace + `
`
if m.settings.ConnectionsEncrypted {
// encryption requires either the 5.11 kernel or the fuse mounter. Until the newer
// kernel is available in minikube, we need to test with fuse.
sc += " mounter: fuse"
// Encryption with kernel version <= 5.11 requires 'mounter: fuse'. For kernel version >= 5.12, it requires 'mounter: kernel'.
// Since the Github action Minikube has kernel version > 5.12, the setting is set to 'mounter: kernel'.
sc += " mounter: kernel"
}
return sc
}