1
0
Fork 0

Fix the service name for ingress-nginx provider

This commit is contained in:
Michael 2025-12-03 16:06:06 +01:00 committed by GitHub
parent 14a1aedf57
commit ef03ed5875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 18 deletions

View file

@ -453,7 +453,7 @@ func (p *Provider) loadConfiguration(ctx context.Context) *dynamic.Configuration
}
// TODO: if no service, do not add middlewares and 503.
serviceName := provider.Normalize(ingress.Namespace + "-" + pa.Backend.Service.Name + "-" + portString)
serviceName := provider.Normalize(ingress.Namespace + "-" + ingress.Name + "-" + pa.Backend.Service.Name + "-" + portString)
service, err := p.buildService(ingress.Namespace, pa.Backend, ingressConfig)
if err != nil {