1
0
Fork 0

Add UDP in providers with labels

This commit is contained in:
Julien Salleyron 2020-02-20 22:24:05 +01:00 committed by GitHub
parent a20a5f1a44
commit bb4de11c51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1440 additions and 68 deletions

View file

@ -224,6 +224,16 @@ func Test_buildConfiguration(t *testing.T) {
"traefik/tcp/services/TCPService02/weighted/services/0/weight": "42",
"traefik/tcp/services/TCPService02/weighted/services/1/name": "foobar",
"traefik/tcp/services/TCPService02/weighted/services/1/weight": "43",
"traefik/udp/routers/UDPRouter0/entrypoints/0": "foobar",
"traefik/udp/routers/UDPRouter0/entrypoints/1": "foobar",
"traefik/udp/routers/UDPRouter0/service": "foobar",
"traefik/udp/routers/UDPRouter1/entrypoints/0": "foobar",
"traefik/udp/routers/UDPRouter1/entrypoints/1": "foobar",
"traefik/udp/routers/UDPRouter1/service": "foobar",
"traefik/udp/services/UDPService01/loadBalancer/servers/0/address": "foobar",
"traefik/udp/services/UDPService01/loadBalancer/servers/1/address": "foobar",
"traefik/udp/services/UDPService02/loadBalancer/servers/0/address": "foobar",
"traefik/udp/services/UDPService02/loadBalancer/servers/1/address": "foobar",
"traefik/tls/options/Options0/minVersion": "foobar",
"traefik/tls/options/Options0/maxVersion": "foobar",
"traefik/tls/options/Options0/cipherSuites/0": "foobar",
@ -740,6 +750,36 @@ func Test_buildConfiguration(t *testing.T) {
},
},
},
UDP: &dynamic.UDPConfiguration{
Routers: map[string]*dynamic.UDPRouter{
"UDPRouter0": {
EntryPoints: []string{"foobar", "foobar"},
Service: "foobar",
},
"UDPRouter1": {
EntryPoints: []string{"foobar", "foobar"},
Service: "foobar",
},
},
Services: map[string]*dynamic.UDPService{
"UDPService01": {
LoadBalancer: &dynamic.UDPServersLoadBalancer{
Servers: []dynamic.UDPServer{
{Address: "foobar"},
{Address: "foobar"},
},
},
},
"UDPService02": {
LoadBalancer: &dynamic.UDPServersLoadBalancer{
Servers: []dynamic.UDPServer{
{Address: "foobar"},
{Address: "foobar"},
},
},
},
},
},
TLS: &dynamic.TLSConfiguration{
Certificates: []*tls.CertAndStores{
{