Skip to content

Commit

Permalink
Added keepPvc for attachment volume too
Browse files Browse the repository at this point in the history
  • Loading branch information
groundhog2k authored Dec 13, 2023
1 parent b69bec9 commit 5b94d4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/vaultwarden/templates/_pvcSpec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ volumeClaimTemplates:
name: {{ .name }}
labels:
{{- include "vaultwarden.labels" $ | nindent 10 }}
annotations:
meta.helm.sh/release-name: {{ $.Release.Name | quote }}
meta.helm.sh/release-namespace: {{ $.Release.Namespace | quote }}
{{- if .keepPvc }}
helm.sh/resource-policy: keep
{{- end }}
spec:
accessModes:
- "ReadWriteOnce"
Expand Down
1 change: 1 addition & 0 deletions charts/vaultwarden/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ attachments: {}
# size: "100Gi"
# class: ""
# path: /files
# keepPvc: false

## @section Logging Configuration
##
Expand Down

0 comments on commit 5b94d4d

Please sign in to comment.