Description
When using the vcluster
CLI, it would be nice to support an option to delete all virtual clusters on the host cluster. Something like vcluster delete --all
would be helpful in really quickly cleaning up clusters without having to remember specific cluster names/specify all clusters.
Something to consider would be the best way to fetch all the namespaces where virtual clusters are deployed to in order to pass on to helm. Also, the --delete-namespace
option would need a way to have all the relevant namespaces passed to it.
The other things to consider would be failure scenarios. Should the command continue if an error is encountered deleting a particular virtual cluster?
Not sure if there would be additional considerations for nested virtual clusters.
Looking forward to thoughts on this!