diff options
author | Urvashi Mohnani <umohnani@redhat.com> | 2022-08-30 10:34:13 -0400 |
---|---|---|
committer | Urvashi Mohnani <umohnani@redhat.com> | 2022-08-31 14:02:13 -0400 |
commit | 84352a81c95b0a322f6b0d691fbd49d82fbc76b6 (patch) | |
tree | b59d85293e446732de8ed9dcaf62a6d5c46850a5 /test/e2e | |
parent | 8266dbe7a90f6f03995b42315b3ac2da54cd018f (diff) | |
download | podman-84352a81c95b0a322f6b0d691fbd49d82fbc76b6.tar.gz podman-84352a81c95b0a322f6b0d691fbd49d82fbc76b6.tar.bz2 podman-84352a81c95b0a322f6b0d691fbd49d82fbc76b6.zip |
Set enableServiceLinks to false in generated yaml
Since podman doesn't set/use the needed service env
variable, always set enableServiceLinks to false in
the generated kube yaml.
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Diffstat (limited to 'test/e2e')
-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 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 { |