2023-02-19 15:54:23 -05:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
2023-09-10 04:15:19 -04:00
|
|
|
{{- include "tc.v1.common.loader.init" . }}
|
2023-02-19 15:54:23 -05:00
|
|
|
|
|
|
|
{{/* Render secret */}}
|
2023-09-10 04:15:19 -04:00
|
|
|
{{- $secret := include "tfa.secrets" . | fromYaml -}}
|
|
|
|
{{- if $secret -}}
|
|
|
|
{{- $_ := set .Values.secret "tfa-secrets" $secret -}}
|
|
|
|
{{- end -}}
|
2023-02-19 15:54:23 -05:00
|
|
|
|
2023-09-10 04:15:19 -04:00
|
|
|
{{/* Render arguments */}}
|
2023-02-19 15:54:23 -05:00
|
|
|
{{- $tplArgs := (include "tfa.args" . | fromYaml) }}
|
|
|
|
{{- $_ := set .Values "tplArgs" $tplArgs -}}
|
2023-09-10 04:15:19 -04: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 15:54:23 -05:00
|
|
|
|
|
|
|
{{/* Render the templates */}}
|
2023-09-10 04:15:19 -04:00
|
|
|
{{ include "tc.v1.common.loader.apply" . }}
|