increase discovery burst for kube-controller-manager

This commit is contained in:
David Eads
2021-03-02 16:38:22 -05:00
parent a5c3b24dba
commit 8b55bdc405
5 changed files with 66 additions and 4 deletions

View File

@@ -45,6 +45,17 @@ func (m TestClientBuilder) ClientOrDie(name string) clientset.Interface {
return m.clientset
}
func (m TestClientBuilder) DiscoveryClient(name string) (discovery.DiscoveryInterface, error) {
return m.clientset.Discovery(), nil
}
func (m TestClientBuilder) DiscoveryClientOrDie(name string) discovery.DiscoveryInterface {
ret, err := m.DiscoveryClient(name)
if err != nil {
panic(err)
}
return ret
}
// FakeDiscoveryWithError inherits DiscoveryInterface(via FakeDiscovery) with some methods accepting testing data.
type FakeDiscoveryWithError struct {
fakediscovery.FakeDiscovery