Fix error-string-capitalization in clientset generator.

Kubernetes-commit: 14e0cac5e7a6b07c58e78b0daff48d098fdd2150
This commit is contained in:
Markus Thömmes 2020-01-13 11:17:05 +01:00 committed by Kubernetes Publisher
parent 8c05e8c649
commit 7002d8cfae

View File

@ -59,7 +59,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
configShallowCopy := *c
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
if configShallowCopy.Burst <= 0 {
return nil, fmt.Errorf("Burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
}
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
}