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

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

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