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

{{/* Render configmap for synapse */}}
{{- include "synapse.config" . }}

{{/* Render secret for synapse */}}
{{- include "synapse.secret" . }}

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

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