diff --git a/charts/keep/templates/keep-backend.yaml b/charts/keep/templates/keep-backend.yaml index bd15f6c..f1cfc88 100644 --- a/charts/keep/templates/keep-backend.yaml +++ b/charts/keep/templates/keep-backend.yaml @@ -44,7 +44,23 @@ spec: env: {{- range .Values.backend.env }} - name: {{ .name }} + {{- if .secretKeyRef }} + valueFrom: + secretKeyRef: + name: {{ .secretName }} + key: {{ .secretKey }} + {{- else if .configMapKeyRef }} + valueFrom: + configMapKeyRef: + name: {{ .configMapName }} + key: {{ .configMapKey }} + {{- else if .fieldRef }} + valueFrom: + fieldRef: + fieldPath: metadata.namespace + {{- else }} value: {{ .value | quote }} + {{- end }} {{- end }} {{- if .Values.backend.openAiApi.enabled }} - name: OPENAI_API_KEY