summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-08 19:38:56 +0200
committerGitHub <noreply@github.com>2022-09-08 19:38:56 +0200
commit6d8bafe57a65970ead17a83cb1983629b3a2aedb (patch)
tree435ee20371ce34db117386cff0b7622d71be4f02 /test/e2e
parent7e2f002b0751c2c24e9c243495cbc313d0c3c103 (diff)
parent71978b0a0c7f6a8e1a6a482b7f8dd105b371d3de (diff)
downloadpodman-6d8bafe57a65970ead17a83cb1983629b3a2aedb.tar.gz
podman-6d8bafe57a65970ead17a83cb1983629b3a2aedb.tar.bz2
podman-6d8bafe57a65970ead17a83cb1983629b3a2aedb.zip
Merge pull request #15607 from fpoirotte/main
Fix #15243 Set AutomountServiceAccountToken to false
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/generate_kube_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/e2e/generate_kube_test.go b/test/e2e/generate_kube_test.go
index a4cbf64e0..39acff6dc 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 {