mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-19 16:12:52 +08:00
Merge pull request #87138 from markusthoemmes/fix-capitalization-error
Fix error-string-capitalization in clientset generator. Kubernetes-commit: 6ae7bfc691c8266fc253d45ecf55acac8877c6d2
This commit is contained in:
commit
960347feac
4
Godeps/Godeps.json
generated
4
Godeps/Godeps.json
generated
@ -356,11 +356,11 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/client-go",
|
||||
"Rev": "bccad466ab89"
|
||||
"Rev": "142dce433b42"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/code-generator",
|
||||
"Rev": "12ea3543a7d6"
|
||||
"Rev": "efe2535de926"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/gengo",
|
||||
|
8
go.mod
8
go.mod
@ -7,8 +7,8 @@ go 1.13
|
||||
require (
|
||||
k8s.io/api v0.0.0-20200124032216-924612ff3bca
|
||||
k8s.io/apimachinery v0.0.0-20200124032037-954b62493c18
|
||||
k8s.io/client-go v0.0.0-20200124032437-bccad466ab89
|
||||
k8s.io/code-generator v0.0.0-20200124031900-12ea3543a7d6
|
||||
k8s.io/client-go v0.0.0-20200124112438-142dce433b42
|
||||
k8s.io/code-generator v0.0.0-20200124111904-efe2535de926
|
||||
k8s.io/klog v1.0.0
|
||||
)
|
||||
|
||||
@ -17,6 +17,6 @@ replace (
|
||||
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
||||
k8s.io/api => k8s.io/api v0.0.0-20200124032216-924612ff3bca
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20200124032037-954b62493c18
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20200124032437-bccad466ab89
|
||||
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20200124031900-12ea3543a7d6
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20200124112438-142dce433b42
|
||||
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20200124111904-efe2535de926
|
||||
)
|
||||
|
4
go.sum
4
go.sum
@ -205,8 +205,8 @@ honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWh
|
||||
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
k8s.io/api v0.0.0-20200124032216-924612ff3bca/go.mod h1:WYGNSV/2aSDAMvHS6cmemi/htNIV58hkcMDRVUi/6tw=
|
||||
k8s.io/apimachinery v0.0.0-20200124032037-954b62493c18/go.mod h1:OAtNFcsmF2+2JlejTQ9O5Qu7PHEA9GlSn28VjH8ssNs=
|
||||
k8s.io/client-go v0.0.0-20200124032437-bccad466ab89/go.mod h1:v3RpIuHO09Zbhw5BmRcqE/Het8nGgvMkJ7QPFq5WDCo=
|
||||
k8s.io/code-generator v0.0.0-20200124031900-12ea3543a7d6/go.mod h1:duTA0M+mFkycHehdK957T/uiS2IRCV9V/ByxCLDUjzY=
|
||||
k8s.io/client-go v0.0.0-20200124112438-142dce433b42/go.mod h1:v3RpIuHO09Zbhw5BmRcqE/Het8nGgvMkJ7QPFq5WDCo=
|
||||
k8s.io/code-generator v0.0.0-20200124111904-efe2535de926/go.mod h1:duTA0M+mFkycHehdK957T/uiS2IRCV9V/ByxCLDUjzY=
|
||||
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6 h1:4s3/R4+OYYYUKptXPhZKjQ04WJ6EhQQVFdjOFvCazDk=
|
||||
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||
k8s.io/gengo v0.0.0-20190822140433-26a664648505 h1:ZY6yclUKVbZ+SdWnkfY+Je5vrMpKOxmGeKRbsXVmqYM=
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user