refactor: use chart values directly instead of attempting to template out cron-job and keda files
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
{{- $processName := "CRON_ID" }}
|
||||
{{- $config := index .Values.processes "CRON_ID" }}
|
||||
{{- $processName, $config := range .Values.processes }}
|
||||
# Only process cron jobs
|
||||
{{- if not (and (hasKey $config "cron") (hasKey $config.cron "id")) }}
|
||||
{{- continue }}
|
||||
{{- end }}
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
@@ -113,3 +116,4 @@ spec:
|
||||
successfulJobsHistoryLimit: 10
|
||||
suspend: false
|
||||
timeZone: Etc/UTC
|
||||
{{- end }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
|
||||
{{- $config := index .Values.global.keda.authentications "AUTH_NAME" }}
|
||||
{{- $authName, $config := range .Values.global.keda.authentications }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
|
||||
{{- $config := index .Values.global.keda.authentications "AUTH_NAME" }}
|
||||
{{- $authName, $config := range .Values.global.keda.authentications }}
|
||||
---
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: TriggerAuthentication
|
||||
|
||||
Reference in New Issue
Block a user