From 1cba989652107841d1b57b11cc6e560506e0be32 Mon Sep 17 00:00:00 2001 From: Marco Vito Moscaritolo Date: Sat, 14 Oct 2023 14:39:21 +0200 Subject: [PATCH] chore: use a better name for internal const --- cmd/caddy/main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/caddy/main.go b/cmd/caddy/main.go index e12d997..463a953 100644 --- a/cmd/caddy/main.go +++ b/cmd/caddy/main.go @@ -18,10 +18,10 @@ import ( const ( // high enough QPS to fit all expected use cases. - defaultQPS = 1e6 + highQPS = 1e6 // high enough Burst to fit all expected use cases. - defaultBurst = 1e6 + highBurst = 1e6 ) func createLogger(verbose bool) *zap.SugaredLogger { @@ -80,9 +80,10 @@ func createApiserverClient(logger *zap.SugaredLogger) (*kubernetes.Clientset, *v logger.Infof("Creating API client for %s", cfg.Host) - cfg.QPS = defaultQPS - cfg.Burst = defaultBurst + cfg.QPS = highQPS + cfg.Burst = highBurst cfg.ContentType = "application/vnd.kubernetes.protobuf" + client, err := kubernetes.NewForConfig(cfg) if err != nil { return nil, nil, err