mirror of
https://github.com/traefik/traefik.git
synced 2025-09-27 16:51:24 +02:00
fix: default router name for k8s ingress.
This commit is contained in:
parent
83de97e547
commit
f2656e62dc
@ -294,7 +294,7 @@ func (p *Provider) loadConfigurationFromIngresses(ctx context.Context, client Cl
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
conf.HTTP.Routers["/"] = &dynamic.Router{
|
conf.HTTP.Routers["default-router"] = &dynamic.Router{
|
||||||
Rule: "PathPrefix(`/`)",
|
Rule: "PathPrefix(`/`)",
|
||||||
Priority: math.MinInt32,
|
Priority: math.MinInt32,
|
||||||
Service: "default-backend",
|
Service: "default-backend",
|
||||||
|
@ -422,7 +422,7 @@ func TestLoadConfigurationFromIngresses(t *testing.T) {
|
|||||||
HTTP: &dynamic.HTTPConfiguration{
|
HTTP: &dynamic.HTTPConfiguration{
|
||||||
Middlewares: map[string]*dynamic.Middleware{},
|
Middlewares: map[string]*dynamic.Middleware{},
|
||||||
Routers: map[string]*dynamic.Router{
|
Routers: map[string]*dynamic.Router{
|
||||||
"/": {
|
"default-router": {
|
||||||
Rule: "PathPrefix(`/`)",
|
Rule: "PathPrefix(`/`)",
|
||||||
Service: "default-backend",
|
Service: "default-backend",
|
||||||
Priority: math.MinInt32,
|
Priority: math.MinInt32,
|
||||||
@ -819,7 +819,7 @@ func TestLoadConfigurationFromIngresses(t *testing.T) {
|
|||||||
HTTP: &dynamic.HTTPConfiguration{
|
HTTP: &dynamic.HTTPConfiguration{
|
||||||
Middlewares: map[string]*dynamic.Middleware{},
|
Middlewares: map[string]*dynamic.Middleware{},
|
||||||
Routers: map[string]*dynamic.Router{
|
Routers: map[string]*dynamic.Router{
|
||||||
"/": {
|
"default-router": {
|
||||||
Rule: "PathPrefix(`/`)",
|
Rule: "PathPrefix(`/`)",
|
||||||
Service: "default-backend",
|
Service: "default-backend",
|
||||||
Priority: math.MinInt32,
|
Priority: math.MinInt32,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user