From 99c1297d70c04c12e394236417056b75c9911ac7 Mon Sep 17 00:00:00 2001 From: Richard Kovacs Date: Wed, 17 Nov 2021 11:33:05 +0100 Subject: [PATCH] Revert "Set timeout for kube client just to be sure" (#104) This reverts commit 59d27290a5c360aba29ee770f880fd7884108f4d. --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index f39ade86..4fb4da49 100644 --- a/main.go +++ b/main.go @@ -233,11 +233,8 @@ func main() { } } - restConfig := ctrl.GetConfigOrDie() - restConfig.Timeout = time.Minute - // Only attempt to grab leader lock once we have an API connection. - mgr, err := ctrl.NewManager(restConfig, ctrl.Options{ + mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{ Scheme: scheme, MetricsBindAddress: metricsAddr, Port: 9443,