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,11 +1,11 @@
{{- if .Capabilities.APIVersions.Has "http.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 }}
{{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }}
{{- if and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda")) }}
{{- if and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http") }}
{{- $mappings := dict }}
{{- range $pdx, $port_map := $config.web.port_maps }}