Merge pull request #131054 from jsturtevant/fix-up-ginkgo-skips

[sig-windows] Ginkgo skip needs to run inside leaf node otherwise it panics
This commit is contained in:
Kubernetes Prow Robot 2025-03-25 13:52:44 -07:00 committed by GitHub
commit ef838fcc3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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