mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 11:10:18 +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>
(cherry picked from commit 607c654263
)
This commit is contained in:
parent
739e8575f4
commit
8e55583c27
@ -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 (
|
||||
@ -234,6 +235,7 @@ func checkClusternameInMetadata(f *framework.Framework, ns, pool, image string)
|
||||
|
||||
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