Skip to content

Commit

Permalink
feat(vaultwarden): added support for changing the controller update s…
Browse files Browse the repository at this point in the history
…trategy
  • Loading branch information
pascaliske committed Aug 1, 2024
1 parent 177885e commit 611d22e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions charts/vaultwarden/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
type: application
name: vaultwarden
description: A Helm chart for Vaultwarden
version: 1.0.1
version: 1.1.0
# renovate: image=ghcr.io/dani-garcia/vaultwarden
appVersion: "1.31.0"

Expand All @@ -26,5 +26,5 @@ dependencies:
annotations:
# possible kinds: added, changed, deprecated, removed, fixed, security
artifacthub.io/changes: |
- kind: changed
description: 'Ensure the mount path is propagated to the app if persistence is used.'
- kind: added
description: 'Added support for changing the controller update strategy.'
3 changes: 2 additions & 1 deletion charts/vaultwarden/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A Helm chart for Vaultwarden
[![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ](https://charts.pascaliske.dev/charts/vaultwarden/)[![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ](https://charts.pascaliske.dev/charts/vaultwarden/)[![AppVersion: 1.31.0](https://img.shields.io/badge/AppVersion-1.31.0-informational?style=flat-square) ](https://charts.pascaliske.dev/charts/vaultwarden/)
[![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ](https://charts.pascaliske.dev/charts/vaultwarden/)[![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ](https://charts.pascaliske.dev/charts/vaultwarden/)[![AppVersion: 1.31.0](https://img.shields.io/badge/AppVersion-1.31.0-informational?style=flat-square) ](https://charts.pascaliske.dev/charts/vaultwarden/)

* <https://github.com/pascaliske/helm-charts>
* <https://github.com/dani-garcia/vaultwarden>
Expand Down Expand Up @@ -53,6 +53,7 @@ The following values can be used to adjust the helm chart.
| controller.kind | string | `"Deployment"` | Type of the workload object. |
| controller.labels | object | `{}` | Additional labels for the controller object. |
| controller.replicas | int | `1` | The number of replicas. |
| controller.updateStrategy | object | `{}` | The controller update strategy. Currently only applies to controllers of kind `Deployment`. |
| env[0] | object | `{"name":"TZ","value":"UTC"}` | Timezone for the container. |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | The pull policy for the controller. |
Expand Down
6 changes: 6 additions & 0 deletions charts/vaultwarden/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ spec:
selector:
matchLabels:
{{- include "vaultwarden.selectorLabels" . | nindent 6 }}
{{- if eq (include "base.controller.kind" . ) "Deployment" }}
{{- with .Values.controller.updateStrategy }}
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
template:
metadata:
{{- with .Values.controller.annotations }}
Expand Down
2 changes: 2 additions & 0 deletions charts/vaultwarden/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ controller:
kind: Deployment
# -- The number of replicas.
replicas: 1
# -- The controller update strategy. Currently only applies to controllers of kind `Deployment`.
updateStrategy: {}
# -- Additional annotations for the controller object.
annotations: {}
# -- Additional labels for the controller object.
Expand Down

0 comments on commit 611d22e

Please sign in to comment.