Skip to content

Commit

Permalink
Merge pull request #6439 from kdw174/capi-k8s-params-1.28
Browse files Browse the repository at this point in the history
Pass Burst and QPS client params to capi k8s clients 1.28
  • Loading branch information
k8s-ci-robot authored Jan 11, 2024
2 parents 3adaf27 + 2291c56 commit b693558
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,17 @@ func BuildClusterAPI(opts config.AutoscalingOptions, do cloudprovider.NodeGroupD
if err != nil {
klog.Fatalf("cannot build management cluster config: %v", err)
}
managementConfig.QPS = float32(opts.KubeClientQPS)
managementConfig.Burst = opts.KubeClientBurst

workloadKubeconfig := opts.KubeConfigPath

workloadConfig, err := clientcmd.BuildConfigFromFlags("", workloadKubeconfig)
if err != nil {
klog.Fatalf("cannot build workload cluster config: %v", err)
}
workloadConfig.QPS = float32(opts.KubeClientQPS)
workloadConfig.Burst = opts.KubeClientBurst

// Grab a dynamic interface that we can create informers from
managementClient, err := dynamic.NewForConfig(managementConfig)
Expand Down

0 comments on commit b693558

Please sign in to comment.