gardener / machine-controller-manager

Declarative way of managing machines for Kubernetes cluster
Apache License 2.0
257 stars 117 forks source link

Introduce a feature to propagate the machine name to user data and as label to the node #919

Closed oliver-goetz closed 3 months ago

oliver-goetz commented 5 months ago

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 for gardener-node-agent. Please see https://github.com/gardener/gardener/pull/10014

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.
MCM adds the name of the machine to `node.gardener.cloud/machine-name` label of the corresponding node.
oliver-goetz commented 4 months ago

Thanks for reviewing. I just applied your feedback.