mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Ginkgo skip needs to run inside leaf node otherwise it panics
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
This commit is contained in:
parent
ee41b03416
commit
2073252d5a
@ -66,7 +66,9 @@ var _ = SIGDescribe("Security Context", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.Context("When creating a pod with HostUsers", func() {
|
ginkgo.Context("When creating a pod with HostUsers", func() {
|
||||||
e2eskipper.SkipIfNodeOSDistroIs("windows")
|
ginkgo.BeforeEach(func() {
|
||||||
|
e2eskipper.SkipIfNodeOSDistroIs("windows")
|
||||||
|
})
|
||||||
|
|
||||||
containerName := "userns-test"
|
containerName := "userns-test"
|
||||||
makePod := func(hostUsers bool) *v1.Pod {
|
makePod := func(hostUsers bool) *v1.Pod {
|
||||||
@ -959,7 +961,9 @@ var _ = SIGDescribe("Security Context", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
var _ = SIGDescribe("User Namespaces for Pod Security Standards [LinuxOnly]", func() {
|
var _ = SIGDescribe("User Namespaces for Pod Security Standards [LinuxOnly]", func() {
|
||||||
e2eskipper.SkipIfNodeOSDistroIs("windows")
|
ginkgo.BeforeEach(func() {
|
||||||
|
e2eskipper.SkipIfNodeOSDistroIs("windows")
|
||||||
|
})
|
||||||
|
|
||||||
f := framework.NewDefaultFramework("user-namespaces-pss-test")
|
f := framework.NewDefaultFramework("user-namespaces-pss-test")
|
||||||
f.NamespacePodSecurityLevel = admissionapi.LevelRestricted
|
f.NamespacePodSecurityLevel = admissionapi.LevelRestricted
|
||||||
|
Loading…
Reference in New Issue
Block a user