Skip to content

Commit

Permalink
set kube client qps and burst config if set
Browse files Browse the repository at this point in the history
  • Loading branch information
jaireddjawed committed Feb 12, 2025
1 parent f10743b commit 2c0c316
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,13 @@ func main() {
cfc.GlobalVaultAuthOptions = globalVaultAuthOptions

config := ctrl.GetConfigOrDie()
// set the Kube Client QPS and Burst config if they are set
if kubeClientQPS != 0 {
config.QPS = float32(kubeClientQPS)
}
if kubeClientBurst != 0 {
config.Burst = kubeClientBurst
}

defaultClient, err := client.NewWithWatch(config, client.Options{
Scheme: scheme,
Expand Down

0 comments on commit 2c0c316

Please sign in to comment.