Merge pull request #3450 from DataDog/backoff-needs-retries-release-1.18

Cherry-pick onto 1.18: Backoff needs retries
This commit is contained in:
Kubernetes Prow Robot 2020-08-23 05:51:41 -07:00 committed by GitHub
commit 3ecf85c359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -250,7 +250,7 @@ Please see the [AKS autoscaler documentation][] for details.
## Rate limit and back-off retries
The new version of [Azure client][] supports rate limit and back-off retries when the cluster hits the throttling issue. These can be set by environment variables or cloud config file.
The new version of [Azure client][] supports rate limit and back-off retries when the cluster hits the throttling issue. These can be set by either environment variables, or cloud config file. With config file, defaults values are false or 0.
| Config Name | Default | Environment Variable | Cloud Config File |
| ----------- | ------- | -------------------- | ----------------- |

View File

@ -559,6 +559,10 @@ func validateConfig(cfg *Config) error {
return fmt.Errorf("ARM Client ID not set")
}
if cfg.CloudProviderBackoff && cfg.CloudProviderBackoffRetries == 0 {
return fmt.Errorf("Cloud provider backoff is enabled but retries are not set")
}
return nil
}