Disable the tests for rootless pods

Access to the cpuset cgroup controller is needed to run these tests.
Configuration on the CI workers prevents access to this controller
for rootless pods.

Signed-off-by: François Poirotte <clicky@erebot.net>
This commit is contained in:
François Poirotte
2025-05-21 19:16:56 +02:00
parent 5bfdb25b26
commit 9d4267c8f2

View File

@ -6195,6 +6195,7 @@ spec:
})
It("test cpuset annotation", func() {
SkipIfRootless("access to cpuset cgroup controller is needed")
ctrAnnotation := "io.podman.annotations.cpuset/" + defaultCtrName
pod := getPod(withAnnotation(ctrAnnotation, "0"), withPodInitCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"printenv", "container"}), withInitCtr(), withName("init-test"))), withCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"top"}))))
err := generateKubeYaml("pod", pod, kubeYaml)
@ -6209,6 +6210,7 @@ spec:
})
It("test memory-nodes annotation", func() {
SkipIfRootless("access to cpuset cgroup controller is needed")
ctrAnnotation := "io.podman.annotations.memory-nodes/" + defaultCtrName
pod := getPod(withAnnotation(ctrAnnotation, "0"), withPodInitCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"printenv", "container"}), withInitCtr(), withName("init-test"))), withCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"top"}))))
err := generateKubeYaml("pod", pod, kubeYaml)