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