refactor use chart values directly instead of attempting to template out cron-job and keda files
This commit is contained in:
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 }}
|
||||
|
||||
{{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }}
|
||||
{{- if .Capabilities.APIVersions.Has "http.keda.sh/v1alpha1" -}}
|
||||
---
|
||||
@@ -24,3 +28,4 @@ spec:
|
||||
externalName: keda-add-ons-http-interceptor-proxy.keda.svc.cluster.local
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in new issue
Block a user