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 }}