Skip to content

Commit

Permalink
feat(vaultwarden): make deploymentStrategy configurable and set defau…
Browse files Browse the repository at this point in the history
…lt to 'type: recreate'
  • Loading branch information
sebastiangaiser committed Sep 9, 2024
1 parent 5ab1c30 commit 8264995
Show file tree
Hide file tree
Showing 4 changed files with 10 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 @@ -8,6 +8,6 @@ icon: https://raw.githubusercontent.com/bitwarden/brand/master/icons/icon.svg
sources:
- https://github.com/dani-garcia/vaultwarden
- https://github.com/sebastiangaiser/helm-charts/
version: 0.10.0
version: 0.11.0
maintainers:
- name: sebastiangaiser
3 changes: 2 additions & 1 deletion charts/vaultwarden/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vaultwarden

![Version: 0.10.0](https://img.shields.io/badge/Version-0.10.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.32.0](https://img.shields.io/badge/AppVersion-1.32.0-informational?style=flat-square)
![Version: 0.11.0](https://img.shields.io/badge/Version-0.11.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.32.0](https://img.shields.io/badge/AppVersion-1.32.0-informational?style=flat-square)

A Helm chart for deploying Vaultwarden to Kubernetes

Expand All @@ -22,6 +22,7 @@ A Helm chart for deploying Vaultwarden to Kubernetes
| additionalVolumeMounts | list | `[]` | Additional volume mounts |
| additionalVolumes | object | `{}` | Additional volumes |
| affinity | object | `{}` | Affinities |
| deploymentStrategy.type | string | `"Recreate"` | |
| fullnameOverride | string | `""` | |
| horizontalAutoscaling | object | `{"enabled":false,"maxReplicas":3,"minReplicas":1,"targetCPUUtilizationPercentage":75,"targetMemoryUtilizationPercentage":75}` | HPA configuration |
| image.pullPolicy | string | `"IfNotPresent"` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/vaultwarden/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ spec:
{{- if not .Values.horizontalAutoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
{{- with .Values.deploymentStrategy }}
strategy:
{{- toYaml . | trim | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "vaultwarden.selectorLabels" . | nindent 6 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/vaultwarden/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ serviceAccount:
annotations: {}
name: ""

deploymentStrategy:
type: Recreate

podAnnotations: {}
podSecurityContext: {}
# runAsUser: 1000
Expand Down

0 comments on commit 8264995

Please sign in to comment.