scale-catalog/stable/traefik-forward-auth/4.0.7/templates/common.yaml

18 lines
650 B
YAML
Raw Permalink Normal View History

2024-07-13 07:59:30 +00:00
{{/* 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" . }}