fix: skip Deployment and ScaledObject generation for cron tasks
This commit is contained in:
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")) }}
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in new issue
Block a user