fix: skip Deployment and ScaledObject generation for cron tasks

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-08-22 02:29:00 -04:00
1 parent cfd7b84c5e
commit 434a111976
2 files changed
+8

No files matched your search

@@ -1,4 +1,8 @@
{{- range $processName, $config := .Values.processes }} {{- range $processName, $config := .Values.processes }}
{{- if hasKey $config "cron" }}
# Skip {{ $processName }} as it is a cron job
{{- continue }}
{{- end }}
{{- $mappings := dict }} {{- $mappings := dict }}
{{- if hasKey $config "web" }} {{- if hasKey $config "web" }}
@@ -1,5 +1,9 @@
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} {{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
{{- range $processName, $config := .Values.processes }} {{- range $processName, $config := .Values.processes }}
{{- if hasKey $config "cron" }}
# Skip {{ $processName }} as it is a cron job
{{- continue }}
{{- end }}
{{- if and (hasKey $config "autoscaling") (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda")) }} {{- if and (hasKey $config "autoscaling") (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda")) }}
--- ---