You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
argocd cluster list
SERVER NAME VERSION STATUS MESSAGE PROJECT
https://127.0.0.1:6443 rancher-desktop Unknown Cluster has no application and not being monitored.
https://kubernetes.default.svc in-cluster Unknown Cluster has no application and not being monitored.
When I run the command below and attempt to delete the cluster by its NAME instead of SERVER, I get the following error
The error is confusing and doesn't mention you can only delete by cluster server (e.g. argocd cluster rm https://127.0.0.1:6443).
Motivation
Referring to a cluster by its name is common for other cli commands (e.g. cluster get). It would be helpful to be able to remove the cluster using its name as the argument to the command.
Proposal
Allow argocd cluster rm to remove cluster credentials by cluster name.
How do you think this should be implemented?
The cluster command has already has a helper function for deciding whether to create a cluster query based on server or name argument being passed. Instead of only accepting server arguments like the cluster rm command does now, it could be switched to use the helper function that returns a cluster query with a server or name. The last part of this would be tweaking the server to make use of the name property for cluster query.
Summary
I have the following cluster credentials added:
When I run the command below and attempt to delete the cluster by its NAME instead of SERVER, I get the following error
The error is confusing and doesn't mention you can only delete by cluster server (e.g. argocd cluster rm https://127.0.0.1:6443).
Motivation
Referring to a cluster by its name is common for other cli commands (e.g. cluster get). It would be helpful to be able to remove the cluster using its name as the argument to the command.
Proposal
Allow argocd cluster rm to remove cluster credentials by cluster name.
How do you think this should be implemented?
The cluster command has already has a helper function for deciding whether to create a cluster query based on server or name argument being passed. Instead of only accepting server arguments like the cluster rm command does now, it could be switched to use the helper function that returns a cluster query with a server or name. The last part of this would be tweaking the server to make use of the name property for cluster query.
A rough draft I have is pushed here: danielhelfand@89b705e
The text was updated successfully, but these errors were encountered: