mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
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 <rodrigoca@microsoft.com>
This commit is contained in:
parent
c348bd10e6
commit
c11077f417
@ -60,6 +60,8 @@ 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")
|
||||||
|
|
||||||
containerName := "userns-test"
|
containerName := "userns-test"
|
||||||
makePod := func(hostUsers bool) *v1.Pod {
|
makePod := func(hostUsers bool) *v1.Pod {
|
||||||
return &v1.Pod{
|
return &v1.Pod{
|
||||||
@ -710,6 +712,8 @@ 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")
|
||||||
|
|
||||||
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