From ef5ed49550de9c3b71087169309dc23dac4c86ff Mon Sep 17 00:00:00 2001 From: 0hlov3 Date: Sun, 19 Nov 2023 20:29:34 +0100 Subject: [PATCH] Fixes Storageclass --- charts/privatebin/Chart.yaml | 2 +- charts/privatebin/templates/pvc.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/privatebin/Chart.yaml b/charts/privatebin/Chart.yaml index 347f6c3..bb0ea35 100644 --- a/charts/privatebin/Chart.yaml +++ b/charts/privatebin/Chart.yaml @@ -8,7 +8,7 @@ keywords: - pastebin - self-destroy type: application -version: 0.1.3 +version: 0.1.4 appVersion: "1.6.0" maintainers: - name: fSocietySocial diff --git a/charts/privatebin/templates/pvc.yaml b/charts/privatebin/templates/pvc.yaml index 8097359..4a43f7c 100644 --- a/charts/privatebin/templates/pvc.yaml +++ b/charts/privatebin/templates/pvc.yaml @@ -11,5 +11,7 @@ spec: resources: requests: storage: {{ .Values.persistence.capacity }} - storageClassName: {{ .Values.persistence.storageclassname | default "default" }} + {{- if .Values.persistence.storageclassname }} + storageClassName: {{ .Values.persistence.storageclassname}} + {{- end }} {{- end }} \ No newline at end of file