TrueChartsCatalogClone/incubator/traefik-forward-auth/0.2.1/templates/common.yaml

18 lines
650 B
YAML
Raw Normal View History

{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render secret */}}
{{- $secret := include "tfa.secrets" . | fromYaml -}}
{{- if $secret -}}
{{- $_ := set .Values.secret "tfa-secrets" $secret -}}
{{- end -}}
{{/* Render arguments */}}
{{- $tplArgs := (include "tfa.args" . | fromYaml) }}
{{- $_ := set .Values "tplArgs" $tplArgs -}}
{{- $mergedArgs := concat $.Values.workload.main.podSpec.containers.main.args .Values.tplArgs.args }}
{{- $_ := set $.Values.workload.main.podSpec.containers.main "args" $mergedArgs -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}