{{/* Make sure all variables are set properly */}} {{- include "tc.common.loader.init" . }} {{/* Set it to the same port as "torrent" service/port */}} {{- $_ := set $.Values.service.torrent.ports.torrentudp "port" (int .Values.service.torrent.ports.torrent.port) -}} {{/* Render the configmap */}} {{ include "qbittorrent.configmap" . }} {{/* Render the templates */}} {{ include "tc.common.loader.apply" . }}