1
0
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:
kinarashah
2019-07-08 15:21:03 -07:00
committed by Alena Prokharchyk
parent dc6f397f78
commit f360207416
3 changed files with 6 additions and 9 deletions

View File

@@ -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