TrueChartsClone/charts/stable/sonarr/templates/common.yaml

12 lines
397 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . -}}
{{/* Disable [exportarr] if requested */}}
{{- if not .Values.metrics.main.enabled -}}
{{- $_ := set .Values.workload.exportarr "enabled" false -}}
{{- $_ := set .Values.service.metrics "enabled" false -}}
{{- end -}}
{{/* Render the templates */}}
{{- include "tc.v1.common.loader.apply" . -}}