Skip to content

Commit

Permalink
fix: Make PVC use storageClass from values (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger authored Jan 31, 2023
1 parent 2df533a commit 0e45e89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/helm-dashboard/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ metadata:
spec:
{{- if .Values.dashboard.persistence.hostPath }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.dashboard.persistence.storageClass }}"
{{- end }}
accessModes:
{{- if not (empty .Values.dashboard.persistence.accessModes) }}
Expand Down Expand Up @@ -45,4 +47,4 @@ spec:
storage: {{ .Values.dashboard.persistence.size | quote }}
hostPath:
path: {{ .Values.dashboard.persistence.hostPath | quote }}
{{- end -}}
{{- end -}}

0 comments on commit 0e45e89

Please sign in to comment.