Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Revert "Set timeout for kube client just to be sure" (#104)
Browse files Browse the repository at this point in the history
This reverts commit 59d2729.
  • Loading branch information
mhmxs authored Nov 17, 2021
1 parent a930e68 commit 99c1297
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 99c1297

Please sign in to comment.