-
Notifications
You must be signed in to change notification settings - Fork 526
[GEP-28] gardenadm token
commands
#11934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you!
/lgtm
LGTM label has been added. Git tree hash: 6747a377a144038b858593b8301ca3623dc976dd
|
/assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making it convenient to manage bootstrap tokens so that we can later join nodes to the autonomous clusters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome PR, thanks! :)
I added some comments, most of them are nits, though.
Previously, a random secret was generated in all cases. For `gardenadm token create`, we have to support that the user specifies a desired token secret.
This will be used by `gardenadm token create` and `gardenadm token generate`
- generates a new bootstrap token secret with random id and secret
- move create utils into `create` package
/lgtm |
LGTM label has been added. Git tree hash: 14f0e8604b127b558d878cd4d2fe3f7fb2aa355d
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Thanks for addressing all my suggestions :)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: timebertt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
How to categorize this PR?
/area ipcei
/kind enhancement
What this PR does / why we need it:
This PR implements the
gardenadm token
subcommands:gardenadm token list [--with-token-secrets]
to list the bootstrap tokens in a nice tablegardenadm token generate
to generate a new random bootstrap tokengardenadm token create <token>
to create a new, user-defined bootstrap tokengardenadm token delete <token-values>
to delete bootstrap tokensIn addition, it is possible to print the
gardenadm join
command (via--print-join-command
). This increases convenience for users. Note that thejoin
command is not yet implemented (subsequent PR will follow).Which issue(s) this PR fixes:
Part of #2906
Release note: