Docs feedback: Help to retrieve mandatory information to delete Kubernetes Agent
Problem to solve
There is no way to delete a Kubernetes agent in the ui, the documentation gives a way to do it with the API but assumes we have the agent's id and token id which are not available in the ui either. As someone who never used the API before, I had to figure out how to get those ids.
Further details
https://docs.gitlab.com/ee/user/clusters/agent/index.html#remove-the-gitlab-kubernetes-agent
Proposal
It may be a good idea to add the request to get those ids like this:
{
project(fullPath: "<group-name/project-name>") {
clusterAgent(name: "<cluster-agent-namet>") {
id
tokens {
edges {
node {
id
}
}
}
}
}
}
Who can address the issue
Someone who made this documentation or someone using the API and Kubernetes agent
Other links/references
Edited by Kantum