diff options
author | François Poirotte <clicky@erebot.net> | 2022-09-02 00:29:24 +0200 |
---|---|---|
committer | François Poirotte <clicky@erebot.net> | 2022-09-04 22:51:56 +0200 |
commit | 71978b0a0c7f6a8e1a6a482b7f8dd105b371d3de (patch) | |
tree | 9cfa3b9bcd1c6ba6d040fd85149fa5d491a8afe9 /test/e2e/generate_kube_test.go | |
parent | 9ab6449e36792734853eb59161ccd3bfe5d0d509 (diff) | |
download | podman-71978b0a0c7f6a8e1a6a482b7f8dd105b371d3de.tar.gz podman-71978b0a0c7f6a8e1a6a482b7f8dd105b371d3de.tar.bz2 podman-71978b0a0c7f6a8e1a6a482b7f8dd105b371d3de.zip |
Fix #15243 Set AutomountServiceAccountToken to false
podman does not use any service account token, so we set the automount flag
to false in podman generate kube.
Signed-off-by: François Poirotte <clicky@erebot.net>
Diffstat (limited to 'test/e2e/generate_kube_test.go')
-rw-r--r-- | test/e2e/generate_kube_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/e2e/generate_kube_test.go b/test/e2e/generate_kube_test.go index 6a73d8ab6..99e6cd41d 100644 --- a/test/e2e/generate_kube_test.go +++ b/test/e2e/generate_kube_test.go @@ -73,6 +73,8 @@ var _ = Describe("Podman generate kube", func() { Expect(pod).To(HaveField("Name", "top-pod")) enableServiceLinks := false Expect(pod.Spec).To(HaveField("EnableServiceLinks", &enableServiceLinks)) + automountServiceAccountToken := false + Expect(pod.Spec).To(HaveField("AutomountServiceAccountToken", &automountServiceAccountToken)) numContainers := 0 for range pod.Spec.Containers { @@ -169,6 +171,8 @@ var _ = Describe("Podman generate kube", func() { Expect(pod.Spec).To(HaveField("HostNetwork", false)) enableServiceLinks := false Expect(pod.Spec).To(HaveField("EnableServiceLinks", &enableServiceLinks)) + automountServiceAccountToken := false + Expect(pod.Spec).To(HaveField("AutomountServiceAccountToken", &automountServiceAccountToken)) numContainers := 0 for range pod.Spec.Containers { |