From 145a3c13684af4b85e58ffc3b30d9f41134e56a5 Mon Sep 17 00:00:00 2001 From: Paolo Dettori Date: Fri, 24 May 2024 22:45:13 -0400 Subject: [PATCH] remove unused code Signed-off-by: Paolo Dettori --- pkg/kubeconfig/kubeconfig.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/pkg/kubeconfig/kubeconfig.go b/pkg/kubeconfig/kubeconfig.go index 6cb53ae..289718e 100644 --- a/pkg/kubeconfig/kubeconfig.go +++ b/pkg/kubeconfig/kubeconfig.go @@ -188,25 +188,3 @@ func renameKey(m interface{}, oldKey string, newKey string) interface{} { } return m } - -// func CopyHostContextAndSetItToDefault(config *clientcmdapi.Config, name string) error { -// if _, ok := config.Contexts[name]; ok { -// return fmt.Errorf("there is already a context with name %s", name) -// } - -// // current context must be pointing at the hosting cluster -// cContext := config.CurrentContext - -// hostContext, ok := config.Contexts[cContext] -// if !ok { -// return fmt.Errorf("current context with name %s not found", cContext) -// } - -// config.Contexts[name] = &clientcmdapi.Context{ -// Cluster: hostContext.Cluster, -// AuthInfo: hostContext.AuthInfo, -// } - -// config.CurrentContext = name -// return nil -// }