2023-02-19 20:54:23 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
2023-09-10 08:15:19 +00:00
|
|
|
{{- include "tc.v1.common.loader.init" . }}
|
2023-02-19 20:54:23 +00:00
|
|
|
|
|
|
|
{{/* Render secret */}}
|
2023-09-10 08:15:19 +00:00
|
|
|
{{- $secret := include "tfa.secrets" . | fromYaml -}}
|
|
|
|
{{- if $secret -}}
|
|
|
|
{{- $_ := set .Values.secret "tfa-secrets" $secret -}}
|
|
|
|
{{- end -}}
|
2023-02-19 20:54:23 +00:00
|
|
|
|
2023-09-10 08:15:19 +00:00
|
|
|
{{/* Render arguments */}}
|
2023-02-19 20:54:23 +00:00
|
|
|
{{- $tplArgs := (include "tfa.args" . | fromYaml) }}
|
|
|
|
{{- $_ := set .Values "tplArgs" $tplArgs -}}
|
2023-09-10 08:15:19 +00:00
|
|
|
{{- $mergedArgs := concat $.Values.workload.main.podSpec.containers.main.args .Values.tplArgs.args }}
|
|
|
|
{{- $_ := set $.Values.workload.main.podSpec.containers.main "args" $mergedArgs -}}
|
2023-02-19 20:54:23 +00:00
|
|
|
|
|
|
|
{{/* Render the templates */}}
|
2023-09-10 08:15:19 +00:00
|
|
|
{{ include "tc.v1.common.loader.apply" . }}
|