Use ipc-utils container in HostIPC tests.
This ensures the `ipcs` command from util-linux will be used, which succeeds when Docker is running with SELinux enabled (while the one from busybox fails.) Tested: On a host with Docker running with SELinux enabled: $ make test-e2e-node REMOTE=true FOCUS="host IPC" • [SLOW TEST:17.272 seconds] (passed) [k8s.io] Security Context when creating a pod in the host IPC namespace should show the shared memory ID in the host IPC containers • [SLOW TEST:20.419 seconds] (passed) [k8s.io] Security Context when creating a pod in the host IPC namespace should not show the shared memory ID in the non-hostIPC containers Ran 2 of 257 Specs in 43.934 seconds SUCCESS! -- 2 Passed | 0 Failed | 0 Pending | 255 Skipped
This commit is contained in:
@@ -53,6 +53,7 @@ var CurrentSuite Suite
|
||||
var CommonImageWhiteList = sets.NewString(
|
||||
"busybox",
|
||||
imageutils.GetE2EImage(imageutils.EntrypointTester),
|
||||
imageutils.GetE2EImage(imageutils.IpcUtils),
|
||||
imageutils.GetE2EImage(imageutils.Liveness),
|
||||
imageutils.GetE2EImage(imageutils.Mounttest),
|
||||
imageutils.GetE2EImage(imageutils.MounttestUser),
|
||||
|
Reference in New Issue
Block a user