codefresh-io / cli

Codefresh CLI
https://codefresh-io.github.io/cli/
MIT License
76 stars 35 forks source link

Unable to delete clusters added by runner #522

Open todaywasawesome opened 4 years ago

todaywasawesome commented 4 years ago

To reproduce install the runner in a new cluster. After it's added to the Codefresh dashboard, try to delete it using the UI and then again via the CLI. Both will fail citing a lack of permissions.

todaywasawesome commented 4 years ago

I also tried deleting the runner first. No joy.

todaywasawesome commented 4 years ago
codefresh delete cluster gke_codefresh-sa_us-central1-c_dan-cluster                       19.7s  Tue Jun 30 11:36:59 2020
Error: Failed to delete cluster

Screen Shot 2020-06-30 at 11 38 28 AM

roi-codefresh commented 4 years ago

@todaywasawesome try to delete the runtime environments that are related to this cluster, it should allow you to remove the cluster integration once all runtimes related to it are removed.

todaywasawesome commented 4 years ago

@roi-codefresh So when you use the cli to delete a runner, it doesn't deregister it. The only way to do this is through the UI. The error that's reported is also not helpful, it should tell you to deregister the runner etc.

Screen Shot 2020-07-01 at 10 34 10 AM