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

{{/* Disable [qbitportforward] if requested */}}
{{- if not .Values.qbitportforward.enabled -}}
  {{- $_ := set .Values.workload.qbitportforward "enabled" false -}}
  {{- $_ := set .Values.service.gluetun "enabled" false -}}
{{- end -}}

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