Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Dettori <[email protected]>
  • Loading branch information
pdettori committed May 25, 2024
1 parent 6878aee commit 8704909
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pkg/kubeconfig/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
// }

0 comments on commit 8704909

Please sign in to comment.