diff --git a/stable/gcloud-sqlproxy/Chart.yaml b/stable/gcloud-sqlproxy/Chart.yaml index 4d3a8d4..e198ce7 100755 --- a/stable/gcloud-sqlproxy/Chart.yaml +++ b/stable/gcloud-sqlproxy/Chart.yaml @@ -19,4 +19,4 @@ name: gcloud-sqlproxy sources: - https://github.com/rimusz/charts type: application -version: 0.25.4 +version: 0.25.5 diff --git a/stable/gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml b/stable/gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml index 9d34993..b491e88 100644 --- a/stable/gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml +++ b/stable/gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml @@ -11,7 +11,11 @@ metadata: spec: scaleTargetRef: apiVersion: apps/v1 + {{- if .Values.useStatefulset }} + kind: Statefulset + {{- else }} kind: Deployment + {{- end }} name: {{ include "gcloud-sqlproxy.fullname" . }} minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }}