diff --git a/e2e/cephfs.go b/e2e/cephfs.go index 0a88b141ffa..474a6d335e9 100644 --- a/e2e/cephfs.go +++ b/e2e/cephfs.go @@ -357,6 +357,26 @@ var _ = Describe(cephfsType, func() { } }) + By("validate kernelMountOptions", func() { + params := map[string]string{ + "mounter": "kernel", + "kernelMountOptions": "nocrc", + } + err := createCephfsStorageClass(f.ClientSet, f, true, params) + if err != nil { + framework.Failf("failed to create CephFS storageclass: %v", err) + } + mountFlags := []string{"nocrc"} + err = checkMountOptions(pvcPath, appPath, f, mountFlags) + if err != nil { + framework.Failf("failed to validate kernel mount options: %v", err) + } + err = deleteResource(cephFSExamplePath + "storageclass.yaml") + if err != nil { + framework.Failf("failed to delete CephFS storageclass: %v", err) + } + }) + By("verify generic ephemeral volume support", func() { err := createCephfsStorageClass(f.ClientSet, f, true, nil) if err != nil {