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

feat: support setting kubeadm ignorePreflightErrors #1097

Merged
merged 4 commits into from
Apr 10, 2025

Conversation

dkoshkin
Copy link
Contributor

@dkoshkin dkoshkin commented Apr 3, 2025

What problem does this PR solve?:
Exposes CAPI's API to configure kubeadm.
This enables working around kubernetes/kubernetes#129462 or ignoring any other kubeadm preflight check.

I intentionally added it as this to mimic CAPIs APIs under a single handler so that we can expose additional configuration in the future.

            nodeRegistration:
              ignorePreflightErrors:
                - SystemVerification

Which issue(s) this PR fixes:
Fixes #

How Has This Been Tested?:

Tested with a Docker cluster and verified the generated templates.
Also unit tests.

Special notes for your reviewer:

Eventhough in CAPI's API taints are also part of nodeRegistration, there is more nuance there that deserves its own handler. Keeping taints and nodeRegistration also allows to change the implementation of taints in the future to a controller based approach that doesn't require a rollout of new Machines.

@dkoshkin dkoshkin requested review from dlipovetsky and faiq April 3, 2025 20:01
@dkoshkin dkoshkin force-pushed the dkoshkin/feat-nodeRegistration branch 2 times, most recently from fda72a5 to 389ca11 Compare April 3, 2025 20:56
@dkoshkin dkoshkin force-pushed the dkoshkin/feat-nodeRegistration branch from 389ca11 to 60207a2 Compare April 3, 2025 21:03
@dkoshkin dkoshkin changed the title feat: support kubeadm ignorePreflightErrors per nodepool and control-plane feat: support setting kubeadm ignorePreflightErrors Apr 3, 2025
@github-actions github-actions bot added feature and removed feature labels Apr 3, 2025
@dkoshkin dkoshkin requested review from faiq and jimmidyson April 8, 2025 19:32
Copy link
Contributor

@faiq faiq left a comment

Choose a reason for hiding this comment

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

thank you!

dlipovetsky
dlipovetsky approved these changes Apr 9, 2025
@dkoshkin dkoshkin force-pushed the dkoshkin/feat-nodeRegistration branch from 26509f1 to 45a9cc2 Compare April 9, 2025 15:48
@dkoshkin dkoshkin force-pushed the dkoshkin/feat-nodeRegistration branch from baebaad to 136090b Compare April 9, 2025 15:54
@dkoshkin dkoshkin requested a review from jimmidyson April 9, 2025 23:15
@jimmidyson jimmidyson merged commit adea1ea into main Apr 10, 2025
21 checks passed
@jimmidyson jimmidyson deleted the dkoshkin/feat-nodeRegistration branch April 10, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants