Skip to content

Commit 19181f6

Browse files
ivanmatmatioktalz
authored andcommitted
BUG: don't process empty secret name in ingress
1 parent 8e41c79 commit 19181f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/ingress/ingress.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ func (i *Ingress) Update(k store.K8s, h haproxy.HAProxy, a annotations.Annotatio
213213
logger.Tracef("Ingress '%s/%s': processing secrets...", i.resource.Namespace, i.resource.Name)
214214
secretManager := secret.NewManager(k, h)
215215
for _, tls := range i.resource.TLS {
216+
if tls.SecretName == "" {
217+
continue
218+
}
216219
sec := secret.Secret{
217220
Name: types.NamespacedName{Namespace: i.resource.Namespace, Name: tls.SecretName},
218221
SecretType: certs.FT_CERT,

0 commit comments

Comments
 (0)