fix: correct scope for capability checks

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-04 04:24:09 -04:00
1 parent c472c2a3c7
commit f7800adb68
3 files changed
+5 -3

No files matched your search

@@ -1,3 +1,4 @@
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
{{- range $processName, $config := .Values.processes }}
# Skip cron jobs
{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }}
@@ -5,7 +6,6 @@
{{- end }}
{{- if and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda")) }}
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject