From 4a1fa1852650dfee222dd8d458ca76a916f74ccc Mon Sep 17 00:00:00 2001 From: tombo Date: Mon, 5 Feb 2024 14:24:03 +0100 Subject: [PATCH] fix replicas when hpa enabled --- charts/warpstream-agent/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/warpstream-agent/templates/deployment.yaml b/charts/warpstream-agent/templates/deployment.yaml index e1daf74..9165f11 100644 --- a/charts/warpstream-agent/templates/deployment.yaml +++ b/charts/warpstream-agent/templates/deployment.yaml @@ -5,7 +5,9 @@ metadata: labels: {{- include "warpstream-agent.labels" . | nindent 4 }} spec: + {{- if and (not .Values.autoscaling.enabled) (.Values.replicas) }} replicas: {{ .Values.replicas }} + {{- end }} selector: matchLabels: {{- include "warpstream-agent.selectorLabels" . | nindent 6 }}