-
Notifications
You must be signed in to change notification settings - Fork 120
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
Introduce a feature to propagate the machine name to user data and as label to the node #919
Introduce a feature to propagate the machine name to user data and as label to the node #919
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.
Can you also move the code in pkg/util/provider/machinecontroller/machine_name.go
and pkg/util/provider/machinecontroller/machine_bootstrap_token.go
into a new file called userdata.go
at pkg/util/provider/machinecontroller/
? This way we have all the userdata related code in one place and can add more code in it if required in the future instead of creating new files everytime
Thanks for reviewing. I just applied your feedback. |
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.
Minor changes needed. Rest looks good
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.
One minor change.
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.
/lgtm
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.
/lgtm
What this PR does / why we need it:
This PR adds two new features to MCM which are required to enable
node-agent-authorizer
webhook based authentication forgardener-node-agent
. Please see gardener/gardener#10014<<MACHINE_NAME>>
in user data with the name of the machine when it is bootstrapped.node.gardener.cloud/machine-name
label of the corresponding node.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:
MCM replaces the magic string `<<MACHINE_NAME>>` in user data with the name of the machine when it is bootstrapped.