allow helm template to add secret ref

This commit is contained in:
Maidul Islam
2022-12-20 18:48:53 -05:00
parent 507b0bd97f
commit ed8134da4f
2 changed files with 6 additions and 0 deletions

View File

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

View File

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