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

{{/* Render secret for hedgedoc */}}
{{- $secret := include "hedgedoc.secrets" . | fromYaml -}}
{{- if $secret -}}
  {{- $_ := set .Values.secret "secrets" $secret -}}
{{- end -}}

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