Support configuring a HTTP client timeout in the Docker provider

This commit is contained in:
Sune Keller 2020-08-28 10:02:03 +02:00 committed by GitHub
parent 3db47f0adc
commit 29bd6faa18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 43 additions and 1 deletions

View file

@ -210,6 +210,10 @@ func (c *Configuration) SetEffectiveConfiguration() {
if c.Providers.Docker.SwarmModeRefreshSeconds <= 0 {
c.Providers.Docker.SwarmModeRefreshSeconds = ptypes.Duration(15 * time.Second)
}
if c.Providers.Docker.HTTPClientTimeout <= 0 {
c.Providers.Docker.HTTPClientTimeout = ptypes.Duration(32 * time.Second)
}
}
if c.Providers.Rancher != nil {