providers/proxy: improve error handling for non-tls ingresses
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
63f57b6a77
commit
3e9f5ec5ef
|
@ -61,6 +61,7 @@ class IngressReconciler(KubernetesObjectReconciler[NetworkingV1beta1Ingress]):
|
||||||
have_hosts.sort()
|
have_hosts.sort()
|
||||||
|
|
||||||
have_hosts_tls = []
|
have_hosts_tls = []
|
||||||
|
if current.spec.tls:
|
||||||
for tls_config in current.spec.tls:
|
for tls_config in current.spec.tls:
|
||||||
if tls_config and tls_config.hosts:
|
if tls_config and tls_config.hosts:
|
||||||
have_hosts_tls += tls_config.hosts
|
have_hosts_tls += tls_config.hosts
|
||||||
|
|
Reference in a new issue