From f2336eedaa75e248dca4021375f6c4b2ad7e8778 Mon Sep 17 00:00:00 2001 From: Thomas John Wesolowski Date: Mon, 30 Nov 2020 05:06:00 -0600 Subject: [PATCH] [bitwardenrs] Fix HPA target (#287) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add persistence type check to hpa target Signed-off-by: TJ Wesolowski * Bump chart version Signed-off-by: TJ Wesolowski Co-authored-by: ᗪєνιη ᗷυнʟ --- charts/bitwardenrs/Chart.yaml | 2 +- charts/bitwardenrs/templates/hpa.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/bitwardenrs/Chart.yaml b/charts/bitwardenrs/Chart.yaml index 8f2176d0..a1593e36 100644 --- a/charts/bitwardenrs/Chart.yaml +++ b/charts/bitwardenrs/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: bitwardenrs description: Unofficial Bitwarden compatible server written in Rust type: application -version: 1.0.0 +version: 1.0.1 appVersion: 1.16.3 keywords: - bitwarden diff --git a/charts/bitwardenrs/templates/hpa.yaml b/charts/bitwardenrs/templates/hpa.yaml index ad240b1a..57935bf9 100644 --- a/charts/bitwardenrs/templates/hpa.yaml +++ b/charts/bitwardenrs/templates/hpa.yaml @@ -8,7 +8,11 @@ metadata: spec: scaleTargetRef: apiVersion: apps/v1 + {{- if eq .Values.persistence.type "statefulset" }} + kind: StatefulSet + {{- else }} kind: Deployment + {{- end }} name: {{ include "bitwardenrs.fullname" . }} minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }}