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 }}