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

{{/* Render secrets for authentik */}}
{{- include "authentik.secrets" . }}

{{- if .Values.geoip.ENABLE_GEOIPUPDATER }}
{{/* Render cronjob for authentik */}}
{{- include "authentik.cronjob" . }}
{{- end -}}

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