fix: Allow 0 enabledPorts (#84)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-11-19 14:47:43 +01:00 committed by GitHub
parent a2a0b8ea2b
commit eed8d60822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 34 additions and 38 deletions

View file

@ -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 -}}