From df1bc74c49ce634485b31d93e38cd2dab9d20071 Mon Sep 17 00:00:00 2001 From: Lester Guerzon Date: Wed, 28 Aug 2024 02:29:47 +0800 Subject: [PATCH] fix: flag to enable notifications service Signed-off-by: Lester Guerzon --- charts/vaultwarden/Chart.yaml | 2 +- charts/vaultwarden/README.md | 1 + charts/vaultwarden/templates/configmap.yaml | 2 +- charts/vaultwarden/values.yaml | 13 ++++++++----- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/charts/vaultwarden/Chart.yaml b/charts/vaultwarden/Chart.yaml index 81c29cf..11ed1a5 100644 --- a/charts/vaultwarden/Chart.yaml +++ b/charts/vaultwarden/Chart.yaml @@ -13,5 +13,5 @@ maintainers: - name: guerzon email: guerzon@proton.me url: https://github.com/guerzon -version: 0.24.2 +version: 0.24.3 kubeVersion: ">=1.12.0-0" diff --git a/charts/vaultwarden/README.md b/charts/vaultwarden/README.md index c12daad..e300901 100644 --- a/charts/vaultwarden/README.md +++ b/charts/vaultwarden/README.md @@ -339,6 +339,7 @@ helm -n $NAMESPACE uninstall $RELEASE_NAME | Name | Description | Value | | ----------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------------------------- | +| `pushNotifications.enabled` | Enable the push notification service | `false` | | `pushNotifications.existingSecret` | Name of an existing secret containing the Bitwarden installation id and key | `""` | | `pushNotifications.installationId.value` | Bitwarden installation id string | `""` | | `pushNotifications.installationId.existingSecretKey` | When using an existing secret, specify the key which contains the installation id. | `""` | diff --git a/charts/vaultwarden/templates/configmap.yaml b/charts/vaultwarden/templates/configmap.yaml index 447eac0..478203e 100644 --- a/charts/vaultwarden/templates/configmap.yaml +++ b/charts/vaultwarden/templates/configmap.yaml @@ -53,7 +53,7 @@ data: INVITATION_ORG_NAME: {{ .Values.invitationOrgName | quote }} ICON_BLACKLIST_NON_GLOBAL_IPS: {{ .Values.iconBlacklistNonGlobalIps | quote }} IP_HEADER: {{ .Values.ipHeader | quote }} - {{- if .Values.pushNotifications }} + {{- if .Values.pushNotifications.enabled }} PUSH_ENABLED: "true" {{- with .Values.pushNotifications.relayUri }} PUSH_RELAY_URI: {{ . | quote }} diff --git a/charts/vaultwarden/values.yaml b/charts/vaultwarden/values.yaml index e7c2d8a..a08349f 100644 --- a/charts/vaultwarden/values.yaml +++ b/charts/vaultwarden/values.yaml @@ -297,18 +297,21 @@ database: ## Refer to https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Mobile-Client-push-notification for details ## -pushNotifications: +pushNotifications: + ## @param pushNotifications.enabled Enable the push notification service + ## + enabled: false ## @param pushNotifications.existingSecret Name of an existing secret containing the Bitwarden installation id and key ## existingSecret: "" - installationId: + installationId: ## @param pushNotifications.installationId.value Bitwarden installation id string ## Example: installationIdGoesHere ## value: "" ## @param pushNotifications.installationId.existingSecretKey When using an existing secret, specify the key which contains the installation id. ## Example: INSTALLATION_ID - ## + ## existingSecretKey: "" installationKey: ## @param pushNotifications.installationKey.value Bitwarden installation key string @@ -321,11 +324,11 @@ pushNotifications: existingSecretKey: "" ## @param pushNotifications.relayUri Change Bitwarden relay uri. ## Refer to https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Mobile-Client-push-notification for details - ## + ## relayUri: "https://push.bitwarden.com" ## @param pushNotifications.identityUri Change Bitwarden identity uri. ## Refer to https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Mobile-Client-push-notification for details - ## + ## identityUri: "https://identity.bitwarden.com" ## @section Scheduled jobs