summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-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 5133059b8..6a73d8ab6 100644
--- a/test/e2e/generate_kube_test.go
+++ b/test/e2e/generate_kube_test.go
@@ -71,6 +71,8 @@ var _ = Describe("Podman generate kube", func() {
Expect(pod.Spec.Containers[0]).To(HaveField("WorkingDir", ""))
Expect(pod.Spec.Containers[0].Env).To(BeNil())
Expect(pod).To(HaveField("Name", "top-pod"))
+ enableServiceLinks := false
+ Expect(pod.Spec).To(HaveField("EnableServiceLinks", &enableServiceLinks))
numContainers := 0
for range pod.Spec.Containers {
@@ -165,6 +167,8 @@ var _ = Describe("Podman generate kube", func() {
err := yaml.Unmarshal(kube.Out.Contents(), pod)
Expect(err).To(BeNil())
Expect(pod.Spec).To(HaveField("HostNetwork", false))
+ enableServiceLinks := false
+ Expect(pod.Spec).To(HaveField("EnableServiceLinks", &enableServiceLinks))
numContainers := 0
for range pod.Spec.Containers {