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

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

{{- $newMiddlewares :=  list "tc-opencors-chain" }}
{{- $_ := set .Values.ingress.main "fixedMiddlewares" $newMiddlewares -}}

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