fix: do not perform nil lookup

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-11-13 17:10:41 -05:00
1 parent 6cb97e75c9
commit 44eab143ab
2 files changed
+2 -4

No files matched your search

@@ -2,7 +2,7 @@
{{- $config := index .Values.processes "PROCESS_NAME" }}
{{- $routeToKeda := false }}
{{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }}
{{- if and (.Capabilities.APIVersions.Has "http.keda.sh/v1alpha1") $config.autoscaling.http_trigger.type }}
{{- if and (.Capabilities.APIVersions.Has "http.keda.sh/v1alpha1") (and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http")) }}
{{- $routeToKeda = true }}
{{- end }}
{{- end }}