This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit ad3a259b28a11305686c0c6e6785fcb25cb3e8ec Author: Aneesh Joseph <[email protected]> AuthorDate: Tue Jul 7 22:38:35 2020 +0530 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 929861e..059d64d 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 f6f781f..a3c42c0 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: {}
