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 }