Skip to content

Commit

Permalink
Fix issue where pvc range produced multiple volume keys (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
paimonsoror authored Dec 4, 2024
1 parent 28169ab commit 1bb422c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/vaultwarden/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- name: guerzon
email: [email protected]
url: https://github.com/guerzon
version: 0.31.0
version: 0.31.1
kubeVersion: ">=1.12.0-0"
4 changes: 3 additions & 1 deletion charts/vaultwarden/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ spec:
{{- end }}
spec:
{{- include "vaultwarden.podSpec" . | nindent 6 }}
{{- range $pvc := (fromYaml (include "vaultwarden.pvcSpec" .)).volumeClaimTemplates }}
{{- if not .Values.storage.existingVolumeClaim }}
volumes:
{{- range $pvc := (fromYaml (include "vaultwarden.pvcSpec" .)).volumeClaimTemplates }}
{{- $newName := printf "%s-%s-0" $pvc.metadata.name $.Release.Name }}
- name: {{ $pvc.metadata.name }}
persistentVolumeClaim:
claimName: {{ $newName }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 1bb422c

Please sign in to comment.