From b39742130822b2c2c3f81225affa4e41d6a49763 Mon Sep 17 00:00:00 2001 From: dvirlabs <114520947+dvirlabs@users.noreply.github.com> Date: Thu, 3 Jul 2025 09:45:26 +0300 Subject: [PATCH] Fix deployment --- .../navix-chart/templates/env-configmap.yaml | 11 ----------- .../templates/frontend-deployment.yaml | 18 +++++++----------- 2 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 charts/navix-chart/templates/env-configmap.yaml diff --git a/charts/navix-chart/templates/env-configmap.yaml b/charts/navix-chart/templates/env-configmap.yaml deleted file mode 100644 index 14fd103..0000000 --- a/charts/navix-chart/templates/env-configmap.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: navix-frontend-env -data: - env.js: | - window.ENV = { - API_BASE: {{ .Values.frontend.env.API_BASE | quote }}, - MINIO_ENDPOINT: {{ .Values.frontend.env.MINIO_ENDPOINT | quote }}, - MINIO_BUCKET: {{ .Values.frontend.env.MINIO_BUCKET | quote }} - }; diff --git a/charts/navix-chart/templates/frontend-deployment.yaml b/charts/navix-chart/templates/frontend-deployment.yaml index 87b55ab..1a3340e 100644 --- a/charts/navix-chart/templates/frontend-deployment.yaml +++ b/charts/navix-chart/templates/frontend-deployment.yaml @@ -18,14 +18,10 @@ spec: imagePullPolicy: {{ .Values.frontend.image.pullPolicy }} ports: - containerPort: 80 - volumeMounts: - - name: env-config - mountPath: /usr/share/nginx/html/env.js - subPath: env.js - volumes: - - name: env-config - configMap: - name: navix-frontend-env - items: - - key: env.js - path: env.js + env: + - name: API_BASE + value: {{ .Values.frontend.env.API_BASE | quote }} + - name: MINIO_ENDPOINT + value: {{ .Values.frontend.env.MINIO_ENDPOINT | quote }} + - name: MINIO_BUCKET + value: {{ .Values.frontend.env.MINIO_BUCKET | quote }}