Skip to content

Commit

Permalink
BUG: don't process empty secret name in ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Jul 8, 2024
1 parent 77752b4 commit 8211db6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8211db6

Please # to comment.