[stable/airflow] Mount password when Postgres or Redis are enabled (#16030)

Signed-off-by: Mohannad Albanayosy <m.banayosi@gmail.com>
This commit is contained in:
Mohannad Albanayosy
2019-08-23 02:47:18 -07:00
committed by Kubernetes Prow Robot
parent 7ab1ac82cd
commit ef50e8c711
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Airflow is a platform to programmatically author, schedule and monitor workflows
name: airflow
version: 4.0.4
version: 4.0.5
appVersion: 1.10.3
icon: https://airflow.apache.org/_images/pin_large.png
home: https://airflow.apache.org/
+2 -2
View File
@@ -99,14 +99,14 @@ The key names for postgres and redis are fixed, which is consistent with the sub
{{- define "airflow.mapenvsecrets" }}
- name: POSTGRES_USER
value: {{ default "postgres" .Values.postgresql.postgresUser | quote }}
{{- if .Values.postgresql.existingSecret }}
{{- if or .Values.postgresql.existingSecret .Values.postgresql.enabled }}
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ default (include "airflow.postgresql.fullname" .) .Values.postgresql.existingSecret }}
key: postgres-password
{{- end }}
{{- if .Values.redis.existingSecret }}
{{- if or .Values.redis.existingSecret .Values.redis.enabled }}
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef: