1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-13 13:40:22 +00:00

Remove statefile for dind remove

This commit is contained in:
Sebastiaan van Steenis
2020-07-15 10:53:05 +02:00
committed by Denise
parent f8e48f67c3
commit 12b4dcaf59
4 changed files with 11 additions and 3 deletions

View File

@@ -166,8 +166,12 @@ func clusterRemoveDind(ctx *cli.Context) error {
return err
}
}
localKubeConfigPath := pki.GetLocalKubeConfig(filePath, "")
// remove the kube config file
localKubeConfigPath := pki.GetLocalKubeConfig(filePath, "")
pki.RemoveAdminConfig(context.Background(), localKubeConfigPath)
// remove cluster state file
stateFilePath := cluster.GetStateFilePath(filePath, "")
cluster.RemoveStateFile(context.Background(), stateFilePath)
return err
}