Skip to content

Commit

Permalink
Merge pull request #6440 from kdw174/capi-k8s-params-1.27
Browse files Browse the repository at this point in the history
Pass Burst and QPS client params to capi k8s clients 1.27
  • Loading branch information
k8s-ci-robot authored Jan 23, 2024
2 parents 8dfe24b + 2e10d2f commit a9fb7aa
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 a9fb7aa

Please sign in to comment.