fix: ensure keda usage does not cause jank in scaling deployments

If the values set by keda do not match the current deployment replicas value, the deployment object may be scaled in unexpected ways during a helm release. This change ensures keda will continue to manage that value correctly without the deployment object setting it back to something else.
This commit is contained in:
Jose Diaz-Gonzalez
2025-11-22 19:51:29 -05:00
parent 72c519f7b3
commit 4dce4d652a

View File

@@ -30,7 +30,9 @@ metadata:
name: {{ $.Values.global.app_name }}-{{ $processName }}
namespace: {{ $.Values.global.namespace }}
spec:
{{- if not (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }}
replicas: {{ $config.replicas }}
{{- end }}
revisionHistoryLimit: 5
selector:
matchLabels: