Vault secrets app must be created in consumer namespace

This commit is contained in:
2023-11-05 11:40:34 +01:00
parent fc34fc9e73
commit fb63260a9a
3 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -41,11 +41,16 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if or .Values.secrets .Values.vault.enabled }}
{{- if and .Values.secrets (not .Values.vault.enabled) }}
envFrom:
- secretRef:
name: {{ include "template.fullname" . }}
{{- end }}
{{- if .Values.vault.enabled }}
envFrom:
- secretRef:
name: {{ .Values.vault.operatorNamespace | default "vault-secrets-operator-system" }}/{{ include "template.fullname" . }}
{{- end }}
env:
{{- if .Values.application.isSpring }}
- name: SPRING_PROFILES_ACTIVE