Skip to content

Commit

Permalink
Add volumeName if found to pvc (#27)
Browse files Browse the repository at this point in the history
* add volumeName if found

* update chart version
  • Loading branch information
rfashwall authored Feb 4, 2022
1 parent e86dc9f commit b41e49e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chartmuseum/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Host your own Helm Chart Repository
name: chartmuseum
version: 3.6.0
version: 3.6.1
appVersion: 0.14.0
home: https://github.com/helm/chartmuseum
icon: https://raw.githubusercontent.com/chartmuseum/charts/main/logo.jpg
Expand Down
3 changes: 2 additions & 1 deletion src/chartmuseum/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ spec:
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- else if and .Values.persistence.volumeName (.Values.persistence.pv.enabled) }}
{{- if .Values.persistence.volumeName }}
volumeName: "{{ .Values.persistence.volumeName }}"
{{- end }}
{{- end }}
{{- end }}

0 comments on commit b41e49e

Please sign in to comment.