fixed storageClass mapping

This commit is contained in:
0x6b-dev 2023-06-26 01:18:28 +10:00
parent 3e38808823
commit b13d4edcc5

View File

@ -56,7 +56,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
Storage Class
*/}}
{{- define "homebox.persistence.storageClass" -}}
{{- $storageClass := .Values.global.storageClass | default .Values.persistence.storageClass }}
{{- $storageClass := .Values.persistence.storageClass }}
{{- if $storageClass }}
storageClassName: {{ $storageClass | quote }}
{{- end }}