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 }}