fix: Update autoscaler condition for AI Agent to prevent conflicts with KEDA

This commit is contained in:
Nawaz Dhandala 2025-12-30 14:49:08 +00:00
parent e5dbe6ed05
commit dd6ccbead8
No known key found for this signature in database
GPG key ID: 96C5DCA24769DBCA

View file

@ -113,8 +113,8 @@ spec:
{{- include "oneuptime.service" $aiAgentServiceArgs }}
---
{{- if not $.Values.aiAgent.disableAutoscaler }}
# OneUptime AI Agent autoscaler
{{- if and (not $.Values.aiAgent.disableAutoscaler) (not (and $.Values.keda.enabled $.Values.aiAgent.keda.enabled)) }}
# OneUptime AI Agent autoscaler (only when KEDA is not enabled, as KEDA manages its own HPA)
{{- $aiAgentAutoScalerArgs := dict "ServiceName" "ai-agent" "Release" $.Release "Values" $.Values -}}
{{- include "oneuptime.autoscaler" $aiAgentAutoScalerArgs }}
{{- end }}