mirror of
https://github.com/containous/traefik.git
synced 2025-11-23 04:23:52 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79bb320f4c | ||
|
|
058b194604 |
@@ -1,3 +1,9 @@
|
|||||||
|
## [v2.11.31](https://github.com/traefik/traefik/tree/v2.11.31) (2025-11-13)
|
||||||
|
[All Commits](https://github.com/traefik/traefik/compare/v2.11.30...v2.11.31)
|
||||||
|
|
||||||
|
**Bug fixes:**
|
||||||
|
- **[docker,docker/swarm]** Auto-negotiate Docker API version ([#12262](https://github.com/traefik/traefik/pull/12262) by [kevinpollet](https://github.com/kevinpollet))
|
||||||
|
|
||||||
## [v2.11.30](https://github.com/traefik/traefik/tree/v2.11.30) (2025-10-28)
|
## [v2.11.30](https://github.com/traefik/traefik/tree/v2.11.30) (2025-10-28)
|
||||||
[All Commits](https://github.com/traefik/traefik/compare/v2.11.29...v2.11.30)
|
[All Commits](https://github.com/traefik/traefik/compare/v2.11.29...v2.11.30)
|
||||||
|
|
||||||
|
|||||||
@@ -33,14 +33,6 @@ import (
|
|||||||
"github.com/traefik/traefik/v2/pkg/version"
|
"github.com/traefik/traefik/v2/pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
// DockerAPIVersion is a constant holding the version of the Provider API traefik will use.
|
|
||||||
DockerAPIVersion = "1.24"
|
|
||||||
|
|
||||||
// SwarmAPIVersion is a constant holding the version of the Provider API traefik will use.
|
|
||||||
SwarmAPIVersion = "1.24"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DefaultTemplateRule The default template for the default rule.
|
// DefaultTemplateRule The default template for the default rule.
|
||||||
const DefaultTemplateRule = "Host(`{{ normalize .Name }}`)"
|
const DefaultTemplateRule = "Host(`{{ normalize .Name }}`)"
|
||||||
|
|
||||||
@@ -121,13 +113,10 @@ func (p *Provider) createClient() (client.APIClient, error) {
|
|||||||
httpHeaders := map[string]string{
|
httpHeaders := map[string]string{
|
||||||
"User-Agent": "Traefik " + version.Version,
|
"User-Agent": "Traefik " + version.Version,
|
||||||
}
|
}
|
||||||
opts = append(opts, client.WithHTTPHeaders(httpHeaders))
|
opts = append(opts,
|
||||||
|
client.FromEnv,
|
||||||
apiVersion := DockerAPIVersion
|
client.WithAPIVersionNegotiation(),
|
||||||
if p.SwarmMode {
|
client.WithHTTPHeaders(httpHeaders))
|
||||||
apiVersion = SwarmAPIVersion
|
|
||||||
}
|
|
||||||
opts = append(opts, client.WithVersion(apiVersion))
|
|
||||||
|
|
||||||
return client.NewClientWithOpts(opts...)
|
return client.NewClientWithOpts(opts...)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ RepositoryName = "traefik"
|
|||||||
OutputType = "file"
|
OutputType = "file"
|
||||||
FileName = "traefik_changelog.md"
|
FileName = "traefik_changelog.md"
|
||||||
|
|
||||||
# example new bugfix v2.11.30
|
# example new bugfix v2.11.31
|
||||||
CurrentRef = "v2.11"
|
CurrentRef = "v2.11"
|
||||||
PreviousRef = "v2.11.29"
|
PreviousRef = "v2.11.30"
|
||||||
BaseBranch = "v2.11"
|
BaseBranch = "v2.11"
|
||||||
FutureCurrentRefName = "v2.11.30"
|
FutureCurrentRefName = "v2.11.31"
|
||||||
|
|
||||||
ThresholdPreviousRef = 10
|
ThresholdPreviousRef = 10
|
||||||
ThresholdCurrentRef = 10
|
ThresholdCurrentRef = 10
|
||||||
|
|||||||
Reference in New Issue
Block a user