From 5f403a87597fe10459a12bb8c1368fc8b65f9a7c Mon Sep 17 00:00:00 2001 From: flvndh <17010377+flvndh@users.noreply.github.com> Date: Fri, 28 Aug 2020 16:52:05 +0200 Subject: [PATCH] Wrong key in DAGs Persistent Volume Claim (#10627) Co-authored-by: Flavien Dereume-Hancart --- 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 53ea550ddb..d3c95b20a3 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 2e24615ec1..0404a0a7fd 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: