Skip to content

Commit abc272c

Browse files
committed
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 <[email protected]>
1 parent 4ca474f commit abc272c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/framework/installer/ceph_manifests.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ spec:
242242
databaseSizeMB: "1024"
243243
`
244244
}
245+
246+
if m.settings.ConnectionsEncrypted {
247+
clusterSpec += `
248+
csi:
249+
cephfs:
250+
kernelMountOptions: ms_mode=secure
251+
`
252+
}
245253
return clusterSpec + `
246254
priorityClassNames:
247255
mon: system-node-critical
@@ -349,9 +357,9 @@ parameters:
349357
csi.storage.k8s.io/node-stage-secret-namespace: ` + m.settings.Namespace + `
350358
`
351359
if m.settings.ConnectionsEncrypted {
352-
// encryption requires either the 5.11 kernel or the fuse mounter. Until the newer
353-
// kernel is available in minikube, we need to test with fuse.
354-
sc += " mounter: fuse"
360+
// Encryption with kernel version <= 5.11 requires 'mounter: fuse'. For kernel version >= 5.12, it requires 'mounter: kernel'.
361+
// Since the Github action Minikube has kernel version > 5.12, the setting is set to 'mounter: kernel'.
362+
sc += " mounter: kernel"
355363
}
356364
return sc
357365
}

0 commit comments

Comments
 (0)