mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
move tpl higher
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
{{- $values := .values -}}
|
||||
{{- $inherit := "inherit" -}}
|
||||
|
||||
{{- $values = fromYaml (tpl ($values | toYaml) $root) -}}
|
||||
|
||||
{{/* Prepare values */}}
|
||||
{{- $saName := "" -}}
|
||||
{{- with $values.serviceAccountName -}}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
{{/* If it's CronJob prepare the cron dict with enabled forced */}}
|
||||
{{- if eq $.Values.controller.type "CronJob" -}}
|
||||
{{- $_ := set $jobValues "cron" $.Values.controller -}}
|
||||
{{- $_ := set $jobValues "cron" (mustDeepCopy $.Values.controller) -}}
|
||||
{{- $_ := set $jobValues.cron "enabled" true -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -62,6 +62,8 @@
|
||||
{{- $_ := set $jobValues "nameOverride" $jobName -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $jobValues = fromYaml (tpl ($jobValues | toYaml) $) -}}
|
||||
|
||||
{{- if hasKey $job "cron" -}}
|
||||
{{- if $job.cron.enabled -}}
|
||||
{{- include "ix.v1.common.class.cronJob" (dict "root" $ "job" $jobValues) -}}
|
||||
|
||||
Reference in New Issue
Block a user