refactor use chart values directly instead of attempting to template out cron-job and keda files

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-04 04:24:09 -04:00
1 parent 1b95e01ea3
commit c472c2a3c7
9 files changed
+58 -19

No files matched your search

@@ -1,5 +1,9 @@
{{- $processName := "PROCESS_NAME" }}
{{- $config := index .Values.processes "PROCESS_NAME" }}
{{- range $processName, $config := .Values.processes }}
# Skip cron jobs
{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }}
{{- continue }}
{{- end }}
{{- $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") (and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http")) }}
@@ -59,3 +63,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}