Skip to content

Commit 1418bc4

Browse files
committed
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 <[email protected]>
1 parent 22c2661 commit 1418bc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e/play_kube_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6195,6 +6195,7 @@ spec:
61956195
})
61966196

61976197
It("test cpuset annotation", func() {
6198+
SkipIfRootless("access to cpuset cgroup controller is needed")
61986199
ctrAnnotation := "io.podman.annotations.cpuset/" + defaultCtrName
61996200
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"}))))
62006201
err := generateKubeYaml("pod", pod, kubeYaml)
@@ -6209,6 +6210,7 @@ spec:
62096210
})
62106211

62116212
It("test memory-nodes annotation", func() {
6213+
SkipIfRootless("access to cpuset cgroup controller is needed")
62126214
ctrAnnotation := "io.podman.annotations.memory-nodes/" + defaultCtrName
62136215
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"}))))
62146216
err := generateKubeYaml("pod", pod, kubeYaml)

0 commit comments

Comments
 (0)