Skip to content

Commit

Permalink
cast qps to float32
Browse files Browse the repository at this point in the history
  • Loading branch information
kdw174 committed Jan 10, 2024
1 parent 3e94552 commit 2e10d2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func BuildClusterAPI(opts config.AutoscalingOptions, do cloudprovider.NodeGroupD
if err != nil {
klog.Fatalf("cannot build management cluster config: %v", err)
}
managementConfig.QPS = opts.KubeClientQPS
managementConfig.QPS = float32(opts.KubeClientQPS)
managementConfig.Burst = opts.KubeClientBurst

workloadKubeconfig := opts.KubeConfigPath
Expand All @@ -167,7 +167,7 @@ func BuildClusterAPI(opts config.AutoscalingOptions, do cloudprovider.NodeGroupD
if err != nil {
klog.Fatalf("cannot build workload cluster config: %v", err)
}
workloadConfig.QPS = opts.KubeClientQPS
workloadConfig.QPS = float32(opts.KubeClientQPS)
workloadConfig.Burst = opts.KubeClientBurst

// Grab a dynamic interface that we can create informers from
Expand Down

0 comments on commit 2e10d2f

Please sign in to comment.