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:
committed by
Denise
parent
f8e48f67c3
commit
12b4dcaf59
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user