{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . -}}

{{- $secret := include "twofauth.secret" . | fromYaml -}}
{{- if $secret -}}
  {{- $_ := set .Values.secret "twofauth-secret" $secret -}}
{{- end -}}

{{/* Render the templates */}}
{{- include "tc.v1.common.loader.apply" . -}}
