mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 22:46:25 +00:00
Remove dead code
This commit is contained in:
committed by
Alena Prokharchyk
parent
8022b815b3
commit
ad678b6a32
@@ -265,14 +265,6 @@ func rebuildLocalAdminConfig(ctx context.Context, kubeCluster *Cluster) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func isLocalConfigWorking(ctx context.Context, localKubeConfigPath string, k8sWrapTransport transport.WrapperFunc) bool {
|
||||
if _, err := GetK8sVersion(localKubeConfigPath, k8sWrapTransport); err != nil {
|
||||
log.Infof(ctx, "[reconcile] Local config is not valid (error: %v), rebuilding admin config", err)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func getLocalConfigAddress(localConfigPath string) (string, error) {
|
||||
config, err := clientcmd.BuildConfigFromFlags("", localConfigPath)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user