Skip to content

Commit

Permalink
Merge pull request kubernetes#6416 from kdw174/capi-k8s-client-params
Browse files Browse the repository at this point in the history
Pass Burst and QPS client params to clusterapi k8s clients
  • Loading branch information
k8s-ci-robot authored Jan 2, 2024
2 parents 10fafe7 + 1cc6239 commit bb72e46
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 = opts.KubeClientOpts.KubeClientQPS
managementConfig.Burst = opts.KubeClientOpts.KubeClientBurst

workloadKubeconfig := opts.KubeClientOpts.KubeConfigPath

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

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

0 comments on commit bb72e46

Please sign in to comment.