{{/* Make sure all variables are set properly */}} {{- include "tc.v1.common.loader.init" . }} {{- if ne (int .Values.service.main.ports.game.port) (add1 (int .Values.service.main.ports.main.port)) -}} {{- fail (printf "In the service game, the port for game must be greater by 1 than the main service's port. You have to set it to <%s>." (add1 .Values.service.main.ports.main.port)) }} {{- end -}} {{- if and (ge (int .Values.service.query.ports.query.port) 27020) (le (int .Values.service.query.ports.query.port) 27050) -}} {{- fail "Query Steam Service port cannot be between 27020 and 27050." -}} {{- end }} {{/* Render secrets for ark */}} {{- $secrets := include "ark.secrets" . | fromYaml -}} {{- if $secrets -}} {{- $_ := set .Values.secret "ark-secrets" $secrets -}} {{- end -}} {{/* Render the templates */}} {{ include "tc.v1.common.loader.apply" . }}