-
Notifications
You must be signed in to change notification settings - Fork 1.4k
⚠️ Move Machine deletion timeout fields into deletion group, move KCP machineTemplate spec fields to machineTemplate.spec #12499
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
⚠️ Move Machine deletion timeout fields into deletion group, move KCP machineTemplate spec fields to machineTemplate.spec #12499
Conversation
|
/hold Will push an additional commit with doc updates, otherwise ready for review /test pull-cluster-api-e2e-main-gke |
|
/assign @JoelSpeed @fabriziopandini |
| } | ||
| // NOTE: DropEmptyStruct is required for typed objects, because they are converted to unstructured using the DefaultUnstructuredConverter, | ||
| // and it does not handle omitzero (yet). | ||
| dropEmptyStruct = true |
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.
Without this the MD controller will try to create an MS with deletion: {} because the v0.33 DefaultUnstructuredConverter does not handle omitzero correctly yet (It will with v0.34)
Now that I'm setting this here the MP Machine controller cannot create MP Machines with bootstrap: {} anymore, so I'm setting bootstrap.dataSecretName: &"" there
|
/test pull-cluster-api-e2e-main-gke |
|
/assign @sivchari |
|
Pushed another commit with doc updates |
db01963 to
b9e31f7
Compare
|
/test pull-cluster-api-e2e-main-gke |
|
@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. |
|
I can't reproduce the linter findings locally. This should be all good after #12500. On my machine I can fix this by running |
|
cc @JoelSpeed just fyi. In general I had to run cache clean quite a few times with KAL in the last few weeks. Not sure if that's expected |
It's a golangci-lint thing, it doesn't detect that the configuration changes and caches results that aren't actually true for the new config, there are issues on the golangci-lint project about this |
kk, thx for the info! I"ll have to rebase to fix the conflict, that will "fix" the caching issue |
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
|
LGTM label has been added. Git tree hash: 1db28076427a29111e3225363a2fccbf9c7e3021
|
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.
Great work!
|
|
||
| // KubeadmControlPlaneTemplateMachineTemplateSpec defines the spec for Machines | ||
| // in a KubeadmControlPlane object. | ||
| type KubeadmControlPlaneTemplateMachineTemplateSpec struct { |
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.
q: should we add minProperties?
controlplane/kubeadm/internal/webhooks/kubeadm_control_plane.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/patches/inline/json_patch_generator.go
Show resolved
Hide resolved
b9e31f7 to
1cf8729
Compare
|
/test pull-cluster-api-e2e-main-gke |
|
I'll merge independent of the GitHub action. This was just rebased onto main + locally all linter are green. |
|
/lgtm |
|
LGTM label has been added. Git tree hash: 3ee9428d40a8cea125dcfed1ae4f6340ef878274
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
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 #12497