providers/proxy: always check ingress secret in kubernetes controller
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d28fcca344
commit
e31a3307b5
|
@ -63,8 +63,15 @@ class IngressReconciler(KubernetesObjectReconciler[NetworkingV1beta1Ingress]):
|
||||||
have_hosts_tls = []
|
have_hosts_tls = []
|
||||||
if current.spec.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 not tls_config:
|
||||||
|
continue
|
||||||
|
if tls_config.hosts:
|
||||||
have_hosts_tls += tls_config.hosts
|
have_hosts_tls += tls_config.hosts
|
||||||
|
if (
|
||||||
|
tls_config.secret_name
|
||||||
|
!= self.controller.outpost.config.kubernetes_ingress_secret_name
|
||||||
|
):
|
||||||
|
raise NeedsUpdate()
|
||||||
have_hosts_tls.sort()
|
have_hosts_tls.sort()
|
||||||
|
|
||||||
if have_hosts != expected_hosts:
|
if have_hosts != expected_hosts:
|
||||||
|
|
Reference in New Issue