mirror of
https://github.com/truenas/charts.git
synced 2026-11-29 15:35:00 +00:00
This commit upgrades chia, photoprism, home-assistant, storj, nextcloud, emby catalog item(s).
13 lines
609 B
YAML
13 lines
609 B
YAML
{{ if eq (include "enableService" .) "true" }}
|
|
{{ $svc := .Values.service }}
|
|
{{ $ports := list }}
|
|
{{ if ge ($svc.nodePort | int) 9000 }}
|
|
{{ $ports = mustAppend $ports (dict "name" "chia-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444) }}
|
|
{{ end }}
|
|
{{ if ge ($svc.farmerPort | int) 9000 }}
|
|
{{ $ports = mustAppend $ports (dict "name" "chia-farmer" "port" $svc.farmerPort "nodePort" $svc.farmerPort "targetPort" 8447) }}
|
|
{{ end }}
|
|
{{ $params := . }}
|
|
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
|
|
{{ include "common.classes.service" $params }}
|
|
{{ end }} |