Merge pull request #7880 from kinvolk/rata/userns-stateless-pods
This commit is contained in:
commit
5cf6040cce
@ -888,6 +888,8 @@ func TestUserNamespace(t *testing.T) {
|
|||||||
err: true,
|
err: true,
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
|
desc := desc
|
||||||
|
test := test
|
||||||
t.Run(desc, func(t *testing.T) {
|
t.Run(desc, func(t *testing.T) {
|
||||||
containerConfig.Linux.SecurityContext.NamespaceOptions = &runtime.NamespaceOption{UsernsOptions: test.userNS}
|
containerConfig.Linux.SecurityContext.NamespaceOptions = &runtime.NamespaceOption{UsernsOptions: test.userNS}
|
||||||
spec, err := c.containerSpec(testID, testSandboxID, testPid, "", testContainerName, testImageName, containerConfig, sandboxConfig, imageConfig, nil, ociRuntime)
|
spec, err := c.containerSpec(testID, testSandboxID, testPid, "", testContainerName, testImageName, containerConfig, sandboxConfig, imageConfig, nil, ociRuntime)
|
||||||
|
Loading…
Reference in New Issue
Block a user