fix: skip Deployment and ScaledObject generation for cron tasks

This commit is contained in:
Jose Diaz-Gonzalez
2025-08-22 02:29:00 -04:00
parent cfd7b84c5e
commit 434a111976
2 changed files with 8 additions and 0 deletions

View File

@@ -1,4 +1,8 @@
{{- range $processName, $config := .Values.processes }}
{{- if hasKey $config "cron" }}
# Skip {{ $processName }} as it is a cron job
{{- continue }}
{{- end }}
{{- $mappings := dict }}
{{- if hasKey $config "web" }}

View File

@@ -1,5 +1,9 @@
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
{{- 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")) }}
---