[ingress] avoid invalid externalIPs when config value is empty (#957)

Fix regression introduced by
https://github.com/cozystack/cozystack/pull/929#discussion_r2090992853

becasue of `splitList "," "" == [""]`

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil 2025-05-17 12:35:34 +02:00 committed by GitHub
commit 0369852035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ spec:
enabled: false
{{- end }}
service:
{{- if and (eq $exposeIngress .Release.Namespace) $exposeExternalIPs }}
{{- if and (ne $exposeExternalIPs "") (eq $exposeIngress .Release.Namespace) }}
externalIPs:
{{- toYaml (splitList "," $exposeExternalIPs) | nindent 12 }}
type: ClusterIP