add qps and burst (#108)

Signed-off-by: ldpliu <daliu@redhat.com>
This commit is contained in:
DangPeng Liu
2023-05-16 17:02:06 +08:00
committed by GitHub
parent 3ce72621ef
commit 0bcab43551

View File

@@ -18,6 +18,9 @@ import (
// RunControllerManager starts the controllers on hub to make placement decisions.
func RunControllerManager(ctx context.Context, controllerContext *controllercmd.ControllerContext) error {
kubeConf := controllerContext.KubeConfig
kubeConf.QPS = 50
kubeConf.Burst = 100
clusterClient, err := clusterclient.NewForConfig(controllerContext.KubeConfig)
if err != nil {
return err