diff --git a/pkg/cli/params.go b/pkg/cli/params.go index 14e3284d58..96d01b452b 100644 --- a/pkg/cli/params.go +++ b/pkg/cli/params.go @@ -93,14 +93,12 @@ func (p *TektonParams) dynamicClient(config *rest.Config) (dynamic.Interface, er // Only returns kube client, not tekton client func (p *TektonParams) KubeClient() (k8s.Interface, error) { - config, err := p.config() if err != nil { return nil, err } kube, err := p.kubeClient(config) - if err != nil { return nil, err } @@ -124,6 +122,10 @@ func (p *TektonParams) Clients(cfg ...*rest.Config) (*Clients, error) { config = defaultConfig } + // set values as done in kubectl + config.QPS = 50.0 + config.Burst = 300 + tekton, err := p.tektonClient(config) if err != nil { return nil, err