You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/08/28 14:52:50 UTC
[airflow] branch master updated: Wrong key in DAGs Persistent
Volume Claim (#10627)
This is an automated email from the ASF dual-hosted git repository.
kamilbregula pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 5f403a8 Wrong key in DAGs Persistent Volume Claim (#10627)
5f403a8 is described below
commit 5f403a87597fe10459a12bb8c1368fc8b65f9a7c
Author: flvndh <17...@users.noreply.github.com>
AuthorDate: Fri Aug 28 16:52:05 2020 +0200
Wrong key in DAGs Persistent Volume Claim (#10627)
Co-authored-by: Flavien Dereume-Hancart <fl...@LL-PC0BE1K9-1.goiba.net>
---
chart/templates/dags-persistent-volume-claim.yaml | 6 +++---
chart/tests/dags-persistent-volume-claim_test.yaml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/chart/templates/dags-persistent-volume-claim.yaml b/chart/templates/dags-persistent-volume-claim.yaml
index 53ea550..d3c95b2 100644
--- a/chart/templates/dags-persistent-volume-claim.yaml
+++ b/chart/templates/dags-persistent-volume-claim.yaml
@@ -31,11 +31,11 @@ spec:
resources:
requests:
storage: {{ .Values.dags.persistence.size | quote }}
- {{- if .Values.dags.persistence.storageClass }}
- {{- if (eq "-" .Values.dags.persistence.storageClass) }}
+ {{- if .Values.dags.persistence.storageClassName }}
+ {{- if (eq "-" .Values.dags.persistence.storageClassName) }}
storageClassName: ""
{{- else }}
- storageClassName: "{{ .Values.dags.persistence.storageClass }}"
+ storageClassName: "{{ .Values.dags.persistence.storageClassName }}"
{{- end }}
{{- end }}
{{- end }}
diff --git a/chart/tests/dags-persistent-volume-claim_test.yaml b/chart/tests/dags-persistent-volume-claim_test.yaml
index 2e24615..0404a0a 100644
--- a/chart/tests/dags-persistent-volume-claim_test.yaml
+++ b/chart/tests/dags-persistent-volume-claim_test.yaml
@@ -51,7 +51,7 @@ tests:
enabled: true
size: 1G
existingClaim: ~
- storageClass: "MyStorageClass"
+ storageClassName: "MyStorageClass"
accessMode: ReadWriteMany
asserts:
- equal: