Do not disable Gateway API provider if not enabled in experimental
This commit is contained in:
parent
9758b1ce36
commit
2a0cfda90b
2 changed files with 0 additions and 7 deletions
|
@ -50,7 +50,6 @@ spec:
|
||||||
- --entrypoints.websecure.address=:443
|
- --entrypoints.websecure.address=:443
|
||||||
- --entrypoints.web8080.address=:8080
|
- --entrypoints.web8080.address=:8080
|
||||||
- --entrypoints.traefik.address=:9000
|
- --entrypoints.traefik.address=:9000
|
||||||
- --experimental.kubernetesgateway
|
|
||||||
- --providers.kubernetesgateway.experimentalChannel
|
- --providers.kubernetesgateway.experimentalChannel
|
||||||
- --providers.kubernetesgateway.statusaddress.service.namespace=traefik
|
- --providers.kubernetesgateway.statusaddress.service.namespace=traefik
|
||||||
- --providers.kubernetesgateway.statusaddress.service.name=traefik
|
- --providers.kubernetesgateway.statusaddress.service.name=traefik
|
||||||
|
|
|
@ -280,14 +280,8 @@ func (c *Configuration) SetEffectiveConfiguration() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable Gateway API provider if not enabled in experimental.
|
|
||||||
if c.Experimental == nil || !c.Experimental.KubernetesGateway {
|
|
||||||
c.Providers.KubernetesGateway = nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Configure Gateway API provider
|
// Configure Gateway API provider
|
||||||
if c.Providers.KubernetesGateway != nil {
|
if c.Providers.KubernetesGateway != nil {
|
||||||
log.Debug().Msg("Experimental Kubernetes Gateway provider has been activated")
|
|
||||||
entryPoints := make(map[string]gateway.Entrypoint)
|
entryPoints := make(map[string]gateway.Entrypoint)
|
||||||
for epName, entryPoint := range c.EntryPoints {
|
for epName, entryPoint := range c.EntryPoints {
|
||||||
entryPoints[epName] = gateway.Entrypoint{Address: entryPoint.GetAddress(), HasHTTPTLSConf: entryPoint.HTTP.TLS != nil}
|
entryPoints[epName] = gateway.Entrypoint{Address: entryPoint.GetAddress(), HasHTTPTLSConf: entryPoint.HTTP.TLS != nil}
|
||||||
|
|
Loading…
Reference in a new issue