From c11077f417b62c94a3afad93210a589ab659a911 Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Tue, 18 Mar 2025 11:40:13 +0100 Subject: [PATCH] e2e/node: Skip userns tests on windows While they have the LinuxOnly part, other tests have that and this e2eskipper line. Let's add it just in case. Signed-off-by: Rodrigo Campos --- test/e2e/common/node/security_context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/common/node/security_context.go b/test/e2e/common/node/security_context.go index 30e0cbdc5bc..3a817df82af 100644 --- a/test/e2e/common/node/security_context.go +++ b/test/e2e/common/node/security_context.go @@ -60,6 +60,8 @@ var _ = SIGDescribe("Security Context", func() { }) ginkgo.Context("When creating a pod with HostUsers", func() { + e2eskipper.SkipIfNodeOSDistroIs("windows") + containerName := "userns-test" makePod := func(hostUsers bool) *v1.Pod { return &v1.Pod{ @@ -710,6 +712,8 @@ var _ = SIGDescribe("Security Context", func() { }) var _ = SIGDescribe("User Namespaces for Pod Security Standards [LinuxOnly]", func() { + e2eskipper.SkipIfNodeOSDistroIs("windows") + f := framework.NewDefaultFramework("user-namespaces-pss-test") f.NamespacePodSecurityLevel = admissionapi.LevelRestricted