Skip to content

Conversation

rfranzke
Copy link
Member

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 table
  • gardenadm token generate to generate a new random bootstrap token
  • gardenadm token create <token> to create a new, user-defined bootstrap token
  • gardenadm token delete <token-values> to delete bootstrap tokens

In addition, it is possible to print the gardenadm join command (via --print-join-command). This increases convenience for users. Note that the join command is not yet implemented (subsequent PR will follow).

Which issue(s) this PR fixes:
Part of #2906

Release note:

NONE

@gardener-prow gardener-prow bot added area/ipcei IPCEI (Important Project of Common European Interest) kind/enhancement Enhancement, improvement, extension size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 24, 2025
@gardener-prow gardener-prow bot requested a review from ary1992 April 24, 2025 14:49
@gardener-prow gardener-prow bot added the cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. label Apr 24, 2025
@gardener-prow gardener-prow bot requested a review from ialidzhikov April 24, 2025 14:49
Copy link
Member

@LucaBernstein LucaBernstein left a 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

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2025
Copy link
Contributor

gardener-prow bot commented Apr 30, 2025

LGTM label has been added.

Git tree hash: 6747a377a144038b858593b8301ca3623dc976dd

@ScheererJ
Copy link
Member

/assign

Copy link
Member

@ScheererJ ScheererJ left a 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.

@gardener-prow gardener-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2025
@timebertt timebertt self-assigned this May 5, 2025
Copy link
Member

@timebertt timebertt left a 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.

rfranzke added 7 commits May 6, 2025 10:14
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
@rfranzke rfranzke requested a review from timebertt May 6, 2025 08:22
@ScheererJ
Copy link
Member

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 6, 2025
Copy link
Contributor

gardener-prow bot commented May 6, 2025

LGTM label has been added.

Git tree hash: 14f0e8604b127b558d878cd4d2fe3f7fb2aa355d

Copy link
Member

@timebertt timebertt left a 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 :)

Copy link
Contributor

gardener-prow bot commented May 6, 2025

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 6, 2025
@gardener-prow gardener-prow bot merged commit db7934c into gardener:master May 7, 2025
19 checks passed
@rfranzke rfranzke deleted the gep28/token branch May 7, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/ipcei IPCEI (Important Project of Common European Interest) cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants