Ginkgo skip needs to run inside leaf node otherwise it panics

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
This commit is contained in:
James Sturtevant 2025-03-25 06:59:26 -07:00
parent ee41b03416
commit 2073252d5a
No known key found for this signature in database

View File

@ -66,7 +66,9 @@ var _ = SIGDescribe("Security Context", func() {
})
ginkgo.Context("When creating a pod with HostUsers", func() {
e2eskipper.SkipIfNodeOSDistroIs("windows")
ginkgo.BeforeEach(func() {
e2eskipper.SkipIfNodeOSDistroIs("windows")
})
containerName := "userns-test"
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() {
e2eskipper.SkipIfNodeOSDistroIs("windows")
ginkgo.BeforeEach(func() {
e2eskipper.SkipIfNodeOSDistroIs("windows")
})
f := framework.NewDefaultFramework("user-namespaces-pss-test")
f.NamespacePodSecurityLevel = admissionapi.LevelRestricted