From 49d30857fe53f868d7bc11b64facc3a8f31a1790 Mon Sep 17 00:00:00 2001 From: Marco Vito Moscaritolo Date: Sat, 14 Oct 2023 14:41:58 +0200 Subject: [PATCH] chore: remove unrequired config --- cmd/caddy/main.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/caddy/main.go b/cmd/caddy/main.go index a68ddbf..f4a27b2 100644 --- a/cmd/caddy/main.go +++ b/cmd/caddy/main.go @@ -1,6 +1,11 @@ package main import ( + "os" + "os/signal" + "syscall" + "time" + "github.com/caddyserver/ingress/internal/caddy" "github.com/caddyserver/ingress/internal/controller" "go.uber.org/zap" @@ -9,10 +14,6 @@ import ( "k8s.io/apimachinery/pkg/version" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd" - "os" - "os/signal" - "syscall" - "time" ) const ( @@ -81,7 +82,7 @@ func createApiserverClient(logger *zap.SugaredLogger) (*kubernetes.Clientset, *v cfg.QPS = defaultQPS cfg.Burst = defaultBurst - cfg.ContentType = "application/vnd.kubernetes.protobuf" + client, err := kubernetes.NewForConfig(cfg) if err != nil { return nil, nil, err