[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

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