diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-08 19:38:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 19:38:56 +0200 |
commit | 6d8bafe57a65970ead17a83cb1983629b3a2aedb (patch) | |
tree | 435ee20371ce34db117386cff0b7622d71be4f02 /libpod/kube.go | |
parent | 7e2f002b0751c2c24e9c243495cbc313d0c3c103 (diff) | |
parent | 71978b0a0c7f6a8e1a6a482b7f8dd105b371d3de (diff) | |
download | podman-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 'libpod/kube.go')
-rw-r--r-- | libpod/kube.go | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libpod/kube.go b/libpod/kube.go index d4414aabd..c7aa4b57d 100644 --- a/libpod/kube.go +++ b/libpod/kube.go @@ -470,13 +470,16 @@ func newPodObject(podName string, annotations map[string]string, initCtrs, conta } // Set enableServiceLinks to false as podman doesn't use the service port environment variables enableServiceLinks := false + // Set automountServiceAccountToken to false as podman doesn't use service account tokens + automountServiceAccountToken := false ps := v1.PodSpec{ - Containers: containers, - Hostname: hostname, - HostNetwork: hostNetwork, - InitContainers: initCtrs, - Volumes: volumes, - EnableServiceLinks: &enableServiceLinks, + Containers: containers, + Hostname: hostname, + HostNetwork: hostNetwork, + InitContainers: initCtrs, + Volumes: volumes, + EnableServiceLinks: &enableServiceLinks, + AutomountServiceAccountToken: &automountServiceAccountToken, } if dnsOptions != nil && (len(dnsOptions.Nameservers)+len(dnsOptions.Searches)+len(dnsOptions.Options) > 0) { ps.DNSConfig = dnsOptions |