-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🐛 Fix ControlPlaneComponentHealthCheckSeconds validation in KubeadmConfigSpec.Validate #12609
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
🐛 Fix ControlPlaneComponentHealthCheckSeconds validation in KubeadmConfigSpec.Validate #12609
Conversation
|
/test pull-cluster-api-e2e-main |
|
/cherry-pick release-1.11 |
|
@sbueringer: once the present PR merges, I will cherry-pick it on top of In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/assign @JoelSpeed @sivchari @mboersma |
|
/hold |
KubeadmConfigSpec.Validate Signed-off-by: Stefan Büringer [email protected]
901aac0 to
83ac620
Compare
|
/test pull-cluster-api-e2e-main |
| // Only ensure ControlPlaneComponentHealthCheckSeconds fields are equal for KubeadmControlPlane and KubeadmControlPlaneTemplate. | ||
| // In KubeadmConfig objects usually only one of InitConfiguration or JoinConfiguration is defined as a Machine uses | ||
| // either kubeadm init or kubeadm join, but not both. | ||
| if isKCP { |
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.
We can't enforce this for KubeadmConfig / KubeadmConfigTemplate.
KubeadmConfig will only have InitConfiguration or JoinConfiguration
KubeadmConfigTemplate will only have JoinConfiguration (it's only for worker nodes and they only use kubeadm join)
Anyway, this whole validation block will be removed when we drop v1beta1
| kubeadmConfigSpec: | ||
| clusterConfiguration: | ||
| apiServer: | ||
| timeoutForControlPlane: 20m |
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.
Some easy e2e test coverage. This would fail without the fix, because the KubeadmConfigs that KCP generates only have InitConfiguration or JoinConfiguration defined, but not both
|
/hold cancel |
|
@sbueringer: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/test pull-cluster-api-e2e-main (autoscaler flake, has nothing to do with this PR, will be fixed via another one) |
|
/lgtm |
|
LGTM label has been added. Git tree hash: 939475763f819a0dbee8af41776a6087cd614813
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed 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 |
|
@sbueringer: new pull request created: #12624 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Part of #12605