Skip to content

Commit

Permalink
feat: volume improvements (#109)
Browse files Browse the repository at this point in the history
* feat: pvc access mode, namespace

* chore: update funding
  • Loading branch information
guerzon authored Aug 22, 2024
1 parent ae71afe commit cf32454
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
github: guerzon
liberapay: guerzon
custom: ["https://paypal.me/ilesterg"]
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.24.0
version: 0.24.1
kubeVersion: ">=1.12.0-0"
4 changes: 2 additions & 2 deletions charts/vaultwarden/templates/_pvcSpec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ volumeClaimTemplates:
{{- end }}
spec:
accessModes:
- "ReadWriteOnce"
- {{ .accessMode | quote }}
resources:
requests:
storage: {{ .size }}
Expand All @@ -39,7 +39,7 @@ volumeClaimTemplates:
{{- end }}
spec:
accessModes:
- "ReadWriteOnce"
- {{ .accessMode | quote }}
resources:
requests:
storage: {{ .size }}
Expand Down
1 change: 1 addition & 0 deletions charts/vaultwarden/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
{{- $newName := printf "%s-%s-0" $pvc.metadata.name $.Release.Name }}
{{- $newPvc := merge (dict "metadata" (dict "name" $newName)) $pvc }}
{{- $newPvc := merge (dict "metadata" (dict "namespace" $.Release.Namespace)) $newPvc }}
{{ $newPvc | toYaml }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/vaultwarden/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ data: {}
# class: ""
# path: "/data"
# keepPvc: false
# accessMode: "ReadWriteOnce"

## @param attachments Attachments directory configuration, refer to values.yaml for parameters.
## By default, attachments/ is located inside the data directory.
Expand All @@ -246,6 +247,7 @@ attachments: {}
# class: ""
# path: /files
# keepPvc: false
# accessMode: "ReadWriteOnce"

## @param webVaultEnabled Enable Web Vault
##
Expand Down

0 comments on commit cf32454

Please sign in to comment.