mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Bump discovery burst for kubectl
This commit is contained in:
parent
2b3ff415ba
commit
e944d2c365
@ -268,9 +268,6 @@ func (f *ConfigFlags) toDiscoveryClient() (discovery.CachedDiscoveryInterface, e
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// The more groups you have, the more discovery requests you need to make.
|
|
||||||
// given 25 groups (our groups + a few custom resources) with one-ish version each, discovery needs to make 50 requests
|
|
||||||
// double it just so we don't end up here again for a while. This config is only used for discovery.
|
|
||||||
config.Burst = f.discoveryBurst
|
config.Burst = f.discoveryBurst
|
||||||
|
|
||||||
cacheDir := defaultCacheDir
|
cacheDir := defaultCacheDir
|
||||||
|
@ -294,7 +294,7 @@ func NewKubectlCommand(o KubectlOptions) *cobra.Command {
|
|||||||
|
|
||||||
kubeConfigFlags := o.ConfigFlags
|
kubeConfigFlags := o.ConfigFlags
|
||||||
if kubeConfigFlags == nil {
|
if kubeConfigFlags == nil {
|
||||||
kubeConfigFlags = genericclioptions.NewConfigFlags(true).WithDeprecatedPasswordFlag()
|
kubeConfigFlags = genericclioptions.NewConfigFlags(true).WithDeprecatedPasswordFlag().WithDiscoveryBurst(300)
|
||||||
}
|
}
|
||||||
kubeConfigFlags.AddFlags(flags)
|
kubeConfigFlags.AddFlags(flags)
|
||||||
matchVersionKubeConfigFlags := cmdutil.NewMatchVersionFlags(kubeConfigFlags)
|
matchVersionKubeConfigFlags := cmdutil.NewMatchVersionFlags(kubeConfigFlags)
|
||||||
|
Loading…
Reference in New Issue
Block a user