feat(cluster): implement cluster agent `get-token` command
Description
Note: This MR was separated from !1345 (merged)
This MR adds new command:
glab cluster agent get-token --agent=<agent-id>
The get-token
command is used internally as a credential plugin (by e.g. kubectl
) to retrieve a token to connect to the given agent.
There is documentation for this new command in Document GitLab CLI command usage to update kub... (gitlab!133438 - merged)
Related Issues
Part of #7296 (closed) #7297 (closed)
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Taka Nishida