aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-01 15:17:39 +0200
committerGitHub <noreply@github.com>2022-09-01 15:17:39 +0200
commit0085fbb488eec30e71e6cced6a06dbdb134e32a6 (patch)
tree8c9e8ea3803d8624ba175044e4dddaee5ce4e247 /libpod
parent3994eb6985fb3183a36bce9c7f9ce4f0d6f1c59f (diff)
parent84352a81c95b0a322f6b0d691fbd49d82fbc76b6 (diff)
downloadpodman-0085fbb488eec30e71e6cced6a06dbdb134e32a6.tar.gz
podman-0085fbb488eec30e71e6cced6a06dbdb134e32a6.tar.bz2
podman-0085fbb488eec30e71e6cced6a06dbdb134e32a6.zip
Merge pull request #15571 from umohnani8/gen-kube
Set enableServiceLinks to false in generated yaml
Diffstat (limited to 'libpod')
-rw-r--r--libpod/kube.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/libpod/kube.go b/libpod/kube.go
index a0fb52973..a70782d69 100644
--- a/libpod/kube.go
+++ b/libpod/kube.go
@@ -468,12 +468,15 @@ func newPodObject(podName string, annotations map[string]string, initCtrs, conta
CreationTimestamp: v12.Now(),
Annotations: annotations,
}
+ // Set enableServiceLinks to false as podman doesn't use the service port environment variables
+ enableServiceLinks := false
ps := v1.PodSpec{
- Containers: containers,
- Hostname: hostname,
- HostNetwork: hostNetwork,
- InitContainers: initCtrs,
- Volumes: volumes,
+ Containers: containers,
+ Hostname: hostname,
+ HostNetwork: hostNetwork,
+ InitContainers: initCtrs,
+ Volumes: volumes,
+ EnableServiceLinks: &enableServiceLinks,
}
if dnsOptions != nil && (len(dnsOptions.Nameservers)+len(dnsOptions.Searches)+len(dnsOptions.Options) > 0) {
ps.DNSConfig = dnsOptions