mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
e2e: set privileged as pod security enforcement level
setting privileged as pod security enforcement level to run test on kubernetes 1.25 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
0e294d66e2
commit
607c654263
@ -29,6 +29,7 @@ import (
|
||||
clientset "k8s.io/client-go/kubernetes"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
|
||||
"k8s.io/pod-security-admission/api"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -146,6 +147,7 @@ func validateSubvolumePath(f *framework.Framework, pvcName, pvcNamespace, fileSy
|
||||
|
||||
var _ = Describe(cephfsType, func() {
|
||||
f := framework.NewDefaultFramework(cephfsType)
|
||||
f.NamespacePodSecurityEnforceLevel = api.LevelPrivileged
|
||||
var c clientset.Interface
|
||||
// deploy CephFS CSI
|
||||
BeforeEach(func() {
|
||||
|
@ -32,6 +32,7 @@ import (
|
||||
clientset "k8s.io/client-go/kubernetes"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
|
||||
"k8s.io/pod-security-admission/api"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -236,6 +237,7 @@ func unmountNFSVolume(f *framework.Framework, appName, pvcName string) error {
|
||||
|
||||
var _ = Describe("nfs", func() {
|
||||
f := framework.NewDefaultFramework("nfs")
|
||||
f.NamespacePodSecurityEnforceLevel = api.LevelPrivileged
|
||||
var c clientset.Interface
|
||||
// deploy CephFS CSI
|
||||
BeforeEach(func() {
|
||||
|
@ -33,6 +33,7 @@ import (
|
||||
clientset "k8s.io/client-go/kubernetes"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
|
||||
"k8s.io/pod-security-admission/api"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -252,6 +253,7 @@ func ByFileAndBlockEncryption(
|
||||
|
||||
var _ = Describe("RBD", func() {
|
||||
f := framework.NewDefaultFramework(rbdType)
|
||||
f.NamespacePodSecurityEnforceLevel = api.LevelPrivileged
|
||||
var c clientset.Interface
|
||||
var kernelRelease string
|
||||
// deploy RBD CSI
|
||||
|
@ -30,10 +30,12 @@ import (
|
||||
clientset "k8s.io/client-go/kubernetes"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
|
||||
"k8s.io/pod-security-admission/api"
|
||||
)
|
||||
|
||||
var _ = Describe("CephFS Upgrade Testing", func() {
|
||||
f := framework.NewDefaultFramework("upgrade-test-cephfs")
|
||||
f.NamespacePodSecurityEnforceLevel = api.LevelPrivileged
|
||||
var (
|
||||
c clientset.Interface
|
||||
pvc *v1.PersistentVolumeClaim
|
||||
|
@ -30,10 +30,12 @@ import (
|
||||
clientset "k8s.io/client-go/kubernetes"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
e2elog "k8s.io/kubernetes/test/e2e/framework/log"
|
||||
"k8s.io/pod-security-admission/api"
|
||||
)
|
||||
|
||||
var _ = Describe("RBD Upgrade Testing", func() {
|
||||
f := framework.NewDefaultFramework("upgrade-test-rbd")
|
||||
f.NamespacePodSecurityEnforceLevel = api.LevelPrivileged
|
||||
var (
|
||||
// cwd stores the initial working directory.
|
||||
cwd string
|
||||
|
Loading…
Reference in New Issue
Block a user