mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
fix: Allow 0 enabledPorts (#84)
This commit is contained in:
parent
a2a0b8ea2b
commit
eed8d60822
13 changed files with 34 additions and 38 deletions
|
@ -15,9 +15,5 @@ Return the enabled ports for a given Service object.
|
|||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if eq 0 (len $enabledPorts) }}
|
||||
{{- fail (printf "No ports are enabled for service \"%s\"!" (.serviceName | default "")) }}
|
||||
{{- end }}
|
||||
{{- $enabledPorts | toYaml -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue