summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorcdoern <cdoern@redhat.com>2021-10-11 11:01:36 -0400
committercdoern <cdoern@redhat.com>2021-10-12 16:22:01 -0400
commit4631f5b283b95abb30b91a858517609d3fb2022c (patch)
tree9514311e11bbc664ab56db0cb7315027c28fc5de /test/e2e
parentea868933e8c014ac52192f397f5dc1c3e8ee375a (diff)
downloadpodman-4631f5b283b95abb30b91a858517609d3fb2022c.tar.gz
podman-4631f5b283b95abb30b91a858517609d3fb2022c.tar.bz2
podman-4631f5b283b95abb30b91a858517609d3fb2022c.zip
Kube Gen run as user/group issues
Removed the inclusion of RunAsUser or RunAsGroup unless a container is run with the --user flag. When building from an image the user will be pulled from there anyway resolves #11914 Signed-off-by: cdoern <cdoern@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/generate_kube_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/generate_kube_test.go b/test/e2e/generate_kube_test.go
index 3e6f1e8c4..e51805c83 100644
--- a/test/e2e/generate_kube_test.go
+++ b/test/e2e/generate_kube_test.go
@@ -942,7 +942,7 @@ USER test1`
pod := new(v1.Pod)
err = yaml.Unmarshal(kube.Out.Contents(), pod)
Expect(err).To(BeNil())
- Expect(*pod.Spec.Containers[0].SecurityContext.RunAsUser).To(Equal(int64(10001)))
+ Expect(pod.Spec.Containers[0].SecurityContext.RunAsUser).To(BeNil())
})
It("podman generate kube on named volume", func() {