From ad3a259b28a11305686c0c6e6785fcb25cb3e8ec Mon Sep 17 00:00:00 2001 From: Aneesh Joseph Date: Tue, 7 Jul 2020 22:38:35 +0530 Subject: [PATCH] use the correct claim name in the webserver (#9688) (cherry picked from commit 502b6ea65790ab0bfe35ab80d3a521de8df541d5) --- chart/templates/_helpers.yaml | 2 +- chart/templates/webserver/webserver-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/templates/_helpers.yaml b/chart/templates/_helpers.yaml index 929861e08b846..059d64d3174ab 100644 --- a/chart/templates/_helpers.yaml +++ b/chart/templates/_helpers.yaml @@ -321,7 +321,7 @@ server_tls_key_file = /etc/pgbouncer/server.key {{- end -}} {{ define "airflow_dags_volume_claim" -}} -{{- if and .Values.dags.persistence.enabled .Values.dags.persistence.existingClaim -}} +{{- if .Values.dags.persistence.existingClaim -}} {{ .Values.dags.persistence.existingClaim }} {{- else -}} {{ .Release.Name }}-dags diff --git a/chart/templates/webserver/webserver-deployment.yaml b/chart/templates/webserver/webserver-deployment.yaml index f6f781f2fd8c6..a3c42c0cebf33 100644 --- a/chart/templates/webserver/webserver-deployment.yaml +++ b/chart/templates/webserver/webserver-deployment.yaml @@ -146,7 +146,7 @@ spec: {{- if .Values.dags.persistence.enabled }} - name: dags persistentVolumeClaim: - claimName: {{ .Release.Name }}-dags + claimName: {{ template "airflow_dags_volume_claim" . }} {{- else if .Values.dags.gitSync.enabled }} - name: dags emptyDir: {}