Skip to content

Commit 57f8deb

Browse files
authored
Merge pull request #6438 from kdw174/capi-k8s-params-1.29
Pass Burst and QPS client params to capi k8s clients 1.29
2 parents cf156de + 146a1ab commit 57f8deb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cluster-autoscaler/cloudprovider/clusterapi/clusterapi_provider.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,17 @@ func BuildClusterAPI(opts config.AutoscalingOptions, do cloudprovider.NodeGroupD
158158
if err != nil {
159159
klog.Fatalf("cannot build management cluster config: %v", err)
160160
}
161+
managementConfig.QPS = opts.KubeClientOpts.KubeClientQPS
162+
managementConfig.Burst = opts.KubeClientOpts.KubeClientBurst
161163

162164
workloadKubeconfig := opts.KubeClientOpts.KubeConfigPath
163165

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

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

0 commit comments

Comments
 (0)