From 680e3dc3d0ef20459280fb138f48acd7f22c9bc6 Mon Sep 17 00:00:00 2001 From: Tenshin Higashi <92330484+tenshinhigashi@users.noreply.github.com> Date: Thu, 8 Aug 2024 10:28:31 -0400 Subject: [PATCH] Re-adding HostIP to helm charts (#5733) Signed-off-by: Tenshin Higashi --- charts/emissary-ingress/templates/deployment.yaml | 4 ++++ manifests/emissary/emissary-defaultns.yaml.in | 4 ++++ manifests/emissary/emissary-emissaryns.yaml.in | 4 ++++ python/tests/integration/manifests/ambassador.yaml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/charts/emissary-ingress/templates/deployment.yaml b/charts/emissary-ingress/templates/deployment.yaml index 2c4d17a0a1..37120eb1a1 100644 --- a/charts/emissary-ingress/templates/deployment.yaml +++ b/charts/emissary-ingress/templates/deployment.yaml @@ -216,6 +216,10 @@ spec: - name: admin containerPort: {{ .Values.adminService.port }} env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP {{- if .Values.prometheusExporter.enabled }} - name: STATSD_ENABLED value: "true" diff --git a/manifests/emissary/emissary-defaultns.yaml.in b/manifests/emissary/emissary-defaultns.yaml.in index 5126f391ff..edb3456e30 100644 --- a/manifests/emissary/emissary-defaultns.yaml.in +++ b/manifests/emissary/emissary-defaultns.yaml.in @@ -272,6 +272,10 @@ spec: weight: 100 containers: - env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: AMBASSADOR_NAMESPACE valueFrom: fieldRef: diff --git a/manifests/emissary/emissary-emissaryns.yaml.in b/manifests/emissary/emissary-emissaryns.yaml.in index 906e58a8cf..dbfa00d5ed 100644 --- a/manifests/emissary/emissary-emissaryns.yaml.in +++ b/manifests/emissary/emissary-emissaryns.yaml.in @@ -272,6 +272,10 @@ spec: weight: 100 containers: - env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: AMBASSADOR_NAMESPACE valueFrom: fieldRef: diff --git a/python/tests/integration/manifests/ambassador.yaml b/python/tests/integration/manifests/ambassador.yaml index 157edb6997..f51dea78d9 100644 --- a/python/tests/integration/manifests/ambassador.yaml +++ b/python/tests/integration/manifests/ambassador.yaml @@ -133,6 +133,10 @@ metadata: spec: containers: - env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: AMBASSADOR_NAMESPACE valueFrom: fieldRef: