Fixed oversight of populating environment in deployment only if secrets is populated

This commit is contained in:
2023-11-04 13:18:01 +01:00
parent c0a8c4517e
commit 382954e613
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.secrets }}
{{- if or .Values.secrets .Values.vault.enabled }}
envFrom:
- secretRef:
name: {{ include "template.fullname" . }}