From d6275ee94137f049255498a86886899e67b90ee8 Mon Sep 17 00:00:00 2001 From: jmferrerm Date: Tue, 9 Apr 2024 07:02:45 +0200 Subject: [PATCH] Make chart idempotent. --- kubernetes/helm/templates/webui-pvc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/helm/templates/webui-pvc.yaml b/kubernetes/helm/templates/webui-pvc.yaml index f06454e7a..878332458 100644 --- a/kubernetes/helm/templates/webui-pvc.yaml +++ b/kubernetes/helm/templates/webui-pvc.yaml @@ -17,7 +17,9 @@ spec: resources: requests: storage: {{ .Values.webui.persistence.size }} + {{- if .Values.webui.persistence.storageClass }} storageClassName: {{ .Values.webui.persistence.storageClass }} + {{- end }} {{- with .Values.webui.persistence.selector }} selector: {{- toYaml . | nindent 4 }}