Skip to content
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

Support setting node Hostname to match Serverclaim name #29

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

defo89
Copy link
Contributor

@defo89 defo89 commented Sep 3, 2024

Proposed Changes

  • this adds ability to use $${METAL_HOSTNAME} in kubeadmconfigtemplate to set nodes hostname. It will be replaced by metalmachine (and ServerClaim) name in ignition.

Original CAPBK generated ignition is not modified - we only modify the secret created by metalmachine controller.

Copy link
Member

@afritzler afritzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ... just a small linting issue. Please change the method signature and remove the error return value if not needed.

@github-actions github-actions bot added size/S and removed size/M labels Sep 4, 2024
Copy link
Member

@hardikdr hardikdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about introducing a Spec.nodeNameOverride field in MetalMachine? We could enforce this to be set to ServerClaimName or leave it unset, and handle node naming directly via the API.

Copy link
Member

@hardikdr hardikdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline, lgtm !!

@hardikdr hardikdr merged commit a18dcc0 into main Sep 4, 2024
9 checks passed
@hardikdr hardikdr deleted the machine-hostname branch September 4, 2024 11:03
@afritzler afritzler added the enhancement New feature or request label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants