From 9eddfca31e2c4674f6f23f86c6fbe6578052de92 Mon Sep 17 00:00:00 2001 From: David Townley Date: Thu, 15 Aug 2024 10:10:07 -0400 Subject: [PATCH 1/2] feat: inject domains into web env var PORTER_DOMAINS --- applications/web/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/web/templates/deployment.yaml b/applications/web/templates/deployment.yaml index 9a95ba597..d4ad191d6 100644 --- a/applications/web/templates/deployment.yaml +++ b/applications/web/templates/deployment.yaml @@ -327,6 +327,8 @@ spec: {{- end }} {{- end }} {{- end }} + - name: PORTER_DOMAINS + value: "{{ .Values.ingress.hosts | join "," }}" - name: PORTER_POD_REVISION value: "{{ .Release.Revision }}" - name: PORTER_APP_SERVICE_NAME From 972d69fb9be0f8da9837aa134a7c453a8bae8562 Mon Sep 17 00:00:00 2001 From: David Townley Date: Thu, 15 Aug 2024 10:17:42 -0400 Subject: [PATCH 2/2] feat: inject domains into web env var PORTER_DOMAINS --- applications/web/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/web/templates/deployment.yaml b/applications/web/templates/deployment.yaml index d4ad191d6..445919503 100644 --- a/applications/web/templates/deployment.yaml +++ b/applications/web/templates/deployment.yaml @@ -327,8 +327,10 @@ spec: {{- end }} {{- end }} {{- end }} + {{ if and (.Values.ingress) (.Values.ingress.hosts) }} - name: PORTER_DOMAINS value: "{{ .Values.ingress.hosts | join "," }}" + {{ end }} - name: PORTER_POD_REVISION value: "{{ .Release.Revision }}" - name: PORTER_APP_SERVICE_NAME