From 91047d04a55042a485dca73c23aac7be55ed66e5 Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Wed, 2 Oct 2024 21:08:12 +0200 Subject: [PATCH] chore: golangci-lint fix --- pkg/api/kubeconfig.go | 1 - pkg/cmd/cs.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/pkg/api/kubeconfig.go b/pkg/api/kubeconfig.go index 2854a14..168d197 100644 --- a/pkg/api/kubeconfig.go +++ b/pkg/api/kubeconfig.go @@ -14,7 +14,6 @@ type KubeConfig struct { configFlags *genericclioptions.ConfigFlags config api.Config kubernetesClient *kubernetes.Clientset - counter int } func NewKubeConfigAPI(configFlags *genericclioptions.ConfigFlags, config api.Config) KubeConfig { diff --git a/pkg/cmd/cs.go b/pkg/cmd/cs.go index 54cf508..e76e371 100644 --- a/pkg/cmd/cs.go +++ b/pkg/cmd/cs.go @@ -6,7 +6,6 @@ import ( "github.com/spf13/cobra" "github.com/thoas/go-funk" "k8s.io/cli-runtime/pkg/genericclioptions" - "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd/api" api2 "kc/pkg/api" "kc/pkg/ui" @@ -43,7 +42,6 @@ type ContextSwitcherOptions struct { namespace string task int rawConfig api.Config - kubernetesClient *kubernetes.Clientset kubeConfigApi api2.KubeConfig onlyCurrentContext bool }