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:
parent
1881434ac6
commit
26f4a669b8
4 changed files with 119 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue