From ed8134da4f2c2c4450f6e56f981579192434cfd0 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 20 Dec 2022 18:48:53 -0500 Subject: [PATCH] allow helm template to add secret ref --- helm-charts/infisical/templates/backend-deployment.yaml | 3 +++ helm-charts/infisical/templates/frontend-deployment.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/helm-charts/infisical/templates/backend-deployment.yaml b/helm-charts/infisical/templates/backend-deployment.yaml index 6a2faa688..120518d47 100644 --- a/helm-charts/infisical/templates/backend-deployment.yaml +++ b/helm-charts/infisical/templates/backend-deployment.yaml @@ -20,6 +20,9 @@ spec: imagePullPolicy: {{ .Values.backend.image.pullPolicy }} ports: - containerPort: 4000 + envFrom: + - secretRef: + name: {{ .Values.backend.kubeSecretRef }} env: {{- range $key, $value := .Values.backendEnvironmentVariables }} {{- if $value | quote | eq "MUST_REPLACE" }} diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yaml index 3cd29f326..d803d03a8 100644 --- a/helm-charts/infisical/templates/frontend-deployment.yaml +++ b/helm-charts/infisical/templates/frontend-deployment.yaml @@ -18,6 +18,9 @@ spec: - name: frontend image: infisical/frontend imagePullPolicy: {{ .Values.frontend.image.pullPolicy }} + envFrom: + - secretRef: + name: {{ .Values.frontend.kubeSecretRef }} env: {{- range $key, $value := .Values.frontendEnvironmentVariables }} {{- if $value | quote | eq "MUST_REPLACE" }}