1
0
Fork 0

Prevent Ingress Nginx provider http router to attach to an entrypoint with TLS

Co-authored-by: Gina A. <70909035+gndz07@users.noreply.github.com>
This commit is contained in:
Romain 2026-01-09 17:38:05 +01:00 committed by GitHub
parent 1881434ac6
commit 26f4a669b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 119 additions and 6 deletions

View file

@ -314,6 +314,18 @@ func (c *Configuration) SetEffectiveConfiguration() {
c.Providers.KubernetesGateway.EntryPoints = entryPoints
}
// Configure Ingress NGINX provider.
if c.Providers.KubernetesIngressNGINX != nil {
var nonTLSEntryPoints []string
for epName, entryPoint := range c.EntryPoints {
if entryPoint.HTTP.TLS == nil {
nonTLSEntryPoints = append(nonTLSEntryPoints, epName)
}
}
c.Providers.KubernetesIngressNGINX.NonTLSEntryPoints = nonTLSEntryPoints
}
// Defines the default rule syntax for the Kubernetes Ingress Provider.
// This allows the provider to adapt the matcher syntax to the desired rule syntax version.
if c.Core != nil && c.Providers.KubernetesIngress != nil {