From de9dcec9eff59c7a6c1bbbf1365c499b6dda7f9e Mon Sep 17 00:00:00 2001 From: Taso Chatziantoniou Date: Thu, 2 Nov 2023 18:49:13 -0400 Subject: [PATCH] #142 - HPA kind --- stable/gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml | 4 ++++ 1 file changed, 4 insertions(+) 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 }}