From 83fac86069fa7878cd71dcf58457f5879daf77e7 Mon Sep 17 00:00:00 2001 From: Nick Zenchik Date: Thu, 25 Jul 2024 08:54:02 +0300 Subject: [PATCH] [autoscout] Api hostname for frontend --- charts/autoscout/Chart.yaml | 2 +- charts/autoscout/templates/frontend-deployment.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/autoscout/Chart.yaml b/charts/autoscout/Chart.yaml index 2db6af6..d74774a 100644 --- a/charts/autoscout/Chart.yaml +++ b/charts/autoscout/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.0 +version: 0.2.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/autoscout/templates/frontend-deployment.yaml b/charts/autoscout/templates/frontend-deployment.yaml index 408a029..a236187 100644 --- a/charts/autoscout/templates/frontend-deployment.yaml +++ b/charts/autoscout/templates/frontend-deployment.yaml @@ -41,6 +41,11 @@ spec: {{- toYaml .Values.frontend.securityContext | nindent 12 }} image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}" imagePullPolicy: {{ .Values.frontend.image.pullPolicy }} + env: + {{- with (first .Values.ingress.hosts) }} + - name: NEXT_PUBLIC_API_ORIGIN + value: {{ .host }} + {{- end }} ports: - name: http containerPort: {{ .Values.frontend.service.port }}