From 2c0c3167835d744f1481ba5a748c46d882f50aae Mon Sep 17 00:00:00 2001 From: Jaired Jawed Date: Wed, 12 Feb 2025 10:33:50 -0800 Subject: [PATCH] set kube client qps and burst config if set --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index b9fab6c7..b2df4fcd 100644 --- a/main.go +++ b/main.go @@ -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,