From 8211db60fb36e4983c74077548b5a8baa6608e1d Mon Sep 17 00:00:00 2001 From: Ivan Matmati Date: Thu, 4 Jul 2024 14:28:23 +0200 Subject: [PATCH] BUG: don't process empty secret name in ingress --- pkg/ingress/ingress.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/ingress/ingress.go b/pkg/ingress/ingress.go index 7ecdd302..a4b6c196 100644 --- a/pkg/ingress/ingress.go +++ b/pkg/ingress/ingress.go @@ -213,6 +213,9 @@ func (i *Ingress) Update(k store.K8s, h haproxy.HAProxy, a annotations.Annotatio logger.Tracef("Ingress '%s/%s': processing secrets...", i.resource.Namespace, i.resource.Name) secretManager := secret.NewManager(k, h) for _, tls := range i.resource.TLS { + if tls.SecretName == "" { + continue + } sec := secret.Secret{ Name: types.NamespacedName{Namespace: i.resource.Namespace, Name: tls.SecretName}, SecretType: certs.FT_CERT,