Skip to content
Snippets Groups Projects
Commit 08fa0271 authored by Christopher Harm's avatar Christopher Harm
Browse files

Fixing clean command with running with kind

parent a25fe784
No related branches found
No related tags found
No related merge requests found
Pipeline #192676 waiting for manual action
......@@ -30,18 +30,20 @@ var cleanCmd = &cobra.Command{
Use: "clean",
Short: "delete the helm release(s)",
Run: func(cmd *cobra.Command, args []string) {
environment.EvalDockerEnv()
fixKubectlContext()
err := environment.Run(true, "minikube", "status")
if err != nil {
color.Red("Minikube is not started... run `devtool start` first.")
return
if minikubeProvider() {
environment.EvalDockerEnv()
err := environment.Run(true, "minikube", "status")
if err != nil {
color.Red("Minikube is not started... run `devtool start` first.")
return
}
}
if cleanAll {
err = cleanAllHelm()
err := cleanAllHelm()
if err != nil {
color.Red("Failed to clean helm releases.")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment