fix: only process web-related templates when there is a web section embedded in the template

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-23 20:16:49 -04:00
1 parent 78bde7f817
commit 68f909b91d
9 files changed
+24 -24

No files matched your search

@@ -1,7 +1,7 @@
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
{{- range $processName, $config := .Values.processes }}
# Skip cron jobs
{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }}
# Skip processes that don't have a web section
{{- if not (hasKey $config "web") }}
{{- continue }}
{{- end }}