fix: clean code related to Hub

This commit is contained in:
Ludovic Fernandez 2023-05-15 16:38:05 +02:00 committed by GitHub
parent 1522afe2ec
commit 511762cbf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 97 additions and 1076 deletions

View file

@ -26,7 +26,6 @@ type features struct {
Tracing string `json:"tracing"`
Metrics string `json:"metrics"`
AccessLog bool `json:"accessLog"`
Hub bool `json:"hub"`
// TODO add certificates resolvers
}
@ -248,7 +247,6 @@ func getFeatures(conf static.Configuration) features {
Tracing: getTracing(conf),
Metrics: getMetrics(conf),
AccessLog: conf.AccessLog != nil,
Hub: conf.Hub != nil,
}
}

View file

@ -15,7 +15,6 @@ import (
"github.com/traefik/traefik/v2/pkg/config/static"
"github.com/traefik/traefik/v2/pkg/provider/docker"
"github.com/traefik/traefik/v2/pkg/provider/file"
"github.com/traefik/traefik/v2/pkg/provider/hub"
"github.com/traefik/traefik/v2/pkg/provider/kubernetes/crd"
"github.com/traefik/traefik/v2/pkg/provider/kubernetes/ingress"
"github.com/traefik/traefik/v2/pkg/provider/marathon"
@ -266,7 +265,6 @@ func TestHandler_Overview(t *testing.T) {
Tracing: &static.Tracing{
Jaeger: &jaeger.Config{},
},
Hub: &hub.Provider{},
},
confDyn: runtime.Configuration{},
expected: expected{

View file

@ -2,8 +2,7 @@
"features": {
"accessLog": false,
"metrics": "",
"tracing": "",
"hub": false
"tracing": ""
},
"http": {
"middlewares": {

View file

@ -2,8 +2,7 @@
"features": {
"accessLog": false,
"metrics": "",
"tracing": "",
"hub": false
"tracing": ""
},
"http": {
"middlewares": {

View file

@ -2,8 +2,7 @@
"features": {
"accessLog": false,
"metrics": "Prometheus",
"tracing": "Jaeger",
"hub": true
"tracing": "Jaeger"
},
"http": {
"middlewares": {

View file

@ -2,8 +2,7 @@
"features": {
"accessLog": false,
"metrics": "",
"tracing": "",
"hub": false
"tracing": ""
},
"http": {
"middlewares": {