fix: use MaxInt32.
This commit is contained in:
parent
3bdeb75cc2
commit
bfa61c8f67
8 changed files with 18 additions and 18 deletions
4
integration/testdata/rawdata-ingress.json
vendored
4
integration/testdata/rawdata-ingress.json
vendored
|
@ -6,7 +6,7 @@
|
||||||
],
|
],
|
||||||
"service": "api@internal",
|
"service": "api@internal",
|
||||||
"rule": "PathPrefix(`/api`)",
|
"rule": "PathPrefix(`/api`)",
|
||||||
"priority": 9223372036854775806,
|
"priority": 2147483646,
|
||||||
"status": "enabled",
|
"status": "enabled",
|
||||||
"using": [
|
"using": [
|
||||||
"traefik"
|
"traefik"
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
],
|
],
|
||||||
"service": "dashboard@internal",
|
"service": "dashboard@internal",
|
||||||
"rule": "PathPrefix(`/`)",
|
"rule": "PathPrefix(`/`)",
|
||||||
"priority": 9223372036854775805,
|
"priority": 2147483645,
|
||||||
"status": "enabled",
|
"status": "enabled",
|
||||||
"using": [
|
"using": [
|
||||||
"traefik"
|
"traefik"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
],
|
],
|
||||||
"service": "api@internal",
|
"service": "api@internal",
|
||||||
"rule": "PathPrefix(`/api`)",
|
"rule": "PathPrefix(`/api`)",
|
||||||
"priority": 9223372036854775806
|
"priority": 2147483646
|
||||||
},
|
},
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"entryPoints": [
|
"entryPoints": [
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
],
|
],
|
||||||
"service": "dashboard@internal",
|
"service": "dashboard@internal",
|
||||||
"rule": "PathPrefix(`/`)",
|
"rule": "PathPrefix(`/`)",
|
||||||
"priority": 9223372036854775805
|
"priority": 2147483645
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"middlewares": {
|
"middlewares": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
],
|
],
|
||||||
"service": "api@internal",
|
"service": "api@internal",
|
||||||
"rule": "PathPrefix(`/api`)",
|
"rule": "PathPrefix(`/api`)",
|
||||||
"priority": 9223372036854775806
|
"priority": 2147483646
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
],
|
],
|
||||||
"service": "api@internal",
|
"service": "api@internal",
|
||||||
"rule": "PathPrefix(`/api`)",
|
"rule": "PathPrefix(`/api`)",
|
||||||
"priority": 9223372036854775806
|
"priority": 2147483646
|
||||||
},
|
},
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"entryPoints": [
|
"entryPoints": [
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
],
|
],
|
||||||
"service": "dashboard@internal",
|
"service": "dashboard@internal",
|
||||||
"rule": "PathPrefix(`/`)",
|
"rule": "PathPrefix(`/`)",
|
||||||
"priority": 9223372036854775805
|
"priority": 2147483645
|
||||||
},
|
},
|
||||||
"ping": {
|
"ping": {
|
||||||
"entryPoints": [
|
"entryPoints": [
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
],
|
],
|
||||||
"service": "ping@internal",
|
"service": "ping@internal",
|
||||||
"rule": "PathPrefix(`/ping`)",
|
"rule": "PathPrefix(`/ping`)",
|
||||||
"priority": 9223372036854775807
|
"priority": 2147483647
|
||||||
},
|
},
|
||||||
"prometheus": {
|
"prometheus": {
|
||||||
"entryPoints": [
|
"entryPoints": [
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
],
|
],
|
||||||
"service": "prometheus@internal",
|
"service": "prometheus@internal",
|
||||||
"rule": "PathPrefix(`/metrics`)",
|
"rule": "PathPrefix(`/metrics`)",
|
||||||
"priority": 9223372036854775807
|
"priority": 2147483647
|
||||||
},
|
},
|
||||||
"rest": {
|
"rest": {
|
||||||
"entryPoints": [
|
"entryPoints": [
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
],
|
],
|
||||||
"service": "rest@internal",
|
"service": "rest@internal",
|
||||||
"rule": "PathPrefix(`/api/providers`)",
|
"rule": "PathPrefix(`/api/providers`)",
|
||||||
"priority": 9223372036854775807
|
"priority": 2147483647
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"middlewares": {
|
"middlewares": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
],
|
],
|
||||||
"service": "ping@internal",
|
"service": "ping@internal",
|
||||||
"rule": "PathPrefix(`/ping`)",
|
"rule": "PathPrefix(`/ping`)",
|
||||||
"priority": 9223372036854775807
|
"priority": 2147483647
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
],
|
],
|
||||||
"service": "prometheus@internal",
|
"service": "prometheus@internal",
|
||||||
"rule": "PathPrefix(`/metrics`)",
|
"rule": "PathPrefix(`/metrics`)",
|
||||||
"priority": 9223372036854775807
|
"priority": 2147483647
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
],
|
],
|
||||||
"service": "rest@internal",
|
"service": "rest@internal",
|
||||||
"rule": "PathPrefix(`/api/providers`)",
|
"rule": "PathPrefix(`/api/providers`)",
|
||||||
"priority": 9223372036854775807
|
"priority": 2147483647
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
|
|
|
@ -71,7 +71,7 @@ func (i *Provider) apiConfiguration(cfg *dynamic.Configuration) {
|
||||||
cfg.HTTP.Routers["api"] = &dynamic.Router{
|
cfg.HTTP.Routers["api"] = &dynamic.Router{
|
||||||
EntryPoints: []string{"traefik"},
|
EntryPoints: []string{"traefik"},
|
||||||
Service: "api@internal",
|
Service: "api@internal",
|
||||||
Priority: math.MaxInt64 - 1,
|
Priority: math.MaxInt32 - 1,
|
||||||
Rule: "PathPrefix(`/api`)",
|
Rule: "PathPrefix(`/api`)",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ func (i *Provider) apiConfiguration(cfg *dynamic.Configuration) {
|
||||||
cfg.HTTP.Routers["dashboard"] = &dynamic.Router{
|
cfg.HTTP.Routers["dashboard"] = &dynamic.Router{
|
||||||
EntryPoints: []string{"traefik"},
|
EntryPoints: []string{"traefik"},
|
||||||
Service: "dashboard@internal",
|
Service: "dashboard@internal",
|
||||||
Priority: math.MaxInt64 - 2,
|
Priority: math.MaxInt32 - 2,
|
||||||
Rule: "PathPrefix(`/`)",
|
Rule: "PathPrefix(`/`)",
|
||||||
Middlewares: []string{"dashboard_redirect@internal", "dashboard_stripprefix@internal"},
|
Middlewares: []string{"dashboard_redirect@internal", "dashboard_stripprefix@internal"},
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ func (i *Provider) pingConfiguration(cfg *dynamic.Configuration) {
|
||||||
cfg.HTTP.Routers["ping"] = &dynamic.Router{
|
cfg.HTTP.Routers["ping"] = &dynamic.Router{
|
||||||
EntryPoints: []string{i.staticCfg.Ping.EntryPoint},
|
EntryPoints: []string{i.staticCfg.Ping.EntryPoint},
|
||||||
Service: "ping@internal",
|
Service: "ping@internal",
|
||||||
Priority: math.MaxInt64,
|
Priority: math.MaxInt32,
|
||||||
Rule: "PathPrefix(`/ping`)",
|
Rule: "PathPrefix(`/ping`)",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ func (i *Provider) restConfiguration(cfg *dynamic.Configuration) {
|
||||||
cfg.HTTP.Routers["rest"] = &dynamic.Router{
|
cfg.HTTP.Routers["rest"] = &dynamic.Router{
|
||||||
EntryPoints: []string{"traefik"},
|
EntryPoints: []string{"traefik"},
|
||||||
Service: "rest@internal",
|
Service: "rest@internal",
|
||||||
Priority: math.MaxInt64,
|
Priority: math.MaxInt32,
|
||||||
Rule: "PathPrefix(`/api/providers`)",
|
Rule: "PathPrefix(`/api/providers`)",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@ func (i *Provider) prometheusConfiguration(cfg *dynamic.Configuration) {
|
||||||
cfg.HTTP.Routers["prometheus"] = &dynamic.Router{
|
cfg.HTTP.Routers["prometheus"] = &dynamic.Router{
|
||||||
EntryPoints: []string{i.staticCfg.Metrics.Prometheus.EntryPoint},
|
EntryPoints: []string{i.staticCfg.Metrics.Prometheus.EntryPoint},
|
||||||
Service: "prometheus@internal",
|
Service: "prometheus@internal",
|
||||||
Priority: math.MaxInt64,
|
Priority: math.MaxInt32,
|
||||||
Rule: "PathPrefix(`/metrics`)",
|
Rule: "PathPrefix(`/metrics`)",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue