Skip to content

Commit

Permalink
chore: remove unrequired config
Browse files Browse the repository at this point in the history
  • Loading branch information
mavimo committed Oct 14, 2023
1 parent 31e43d6 commit 49d3085
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/caddy/main.go
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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 (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 49d3085

Please sign in to comment.