mirror of
https://github.com/rancher/rke.git
synced 2025-09-02 15:34:36 +00:00
move metadata init to InitClusterObject
This commit is contained in:
committed by
Alena Prokharchyk
parent
dc6f397f78
commit
f360207416
@@ -4,7 +4,6 @@ import (
|
||||
"bufio"
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/rancher/rke/metadata"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -58,9 +57,6 @@ func ClusterRemove(
|
||||
|
||||
log.Infof(ctx, "Tearing down Kubernetes cluster")
|
||||
|
||||
if metadata.K8sVersionToRKESystemImages == nil {
|
||||
metadata.InitMetadata(ctx)
|
||||
}
|
||||
kubeCluster, err := cluster.InitClusterObject(ctx, rkeConfig, flags)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user