-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
✨ Add Server Side Apply helper to the topology controller #6495
✨ Add Server Side Apply helper to the topology controller #6495
Conversation
6bbb9e9
to
796d296
Compare
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.
First observations
internal/controllers/topology/cluster/structuredmerge/dryrun.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/patchhelper.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/patchhelper.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/patchhelper.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/patchhelper.go
Outdated
Show resolved
Hide resolved
49e36e2
to
b5d1d11
Compare
internal/controllers/topology/cluster/structuredmerge/serversidepathhelper.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/serversidepathhelper.go
Show resolved
Hide resolved
812033d
to
0867b6d
Compare
/test pull-cluster-api-e2e-full-main |
/test pull-cluster-api-e2e-full-main |
In order to fix pull-cluster-api-test-mink8s-main failures it is required to bump the min k8s version supported by Cluster API to get a Kubernetes fix that merged in 1.20 (kubernetes/kubernetes#95836) |
Expected that, currently analyzing this error so we can solve it 👍 TLDR: |
internal/controllers/topology/cluster/structuredmerge/serversidepathhelper.go
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/drop_diff.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/twowayspatchhelper_test.go
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/dryrun.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/dryrun_test.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/serversidepathhelper_test.go
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/serversidepathhelper_test.go
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/serversidepathhelper_test.go
Outdated
Show resolved
Hide resolved
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.
One comment, otherwise looks good as far as I can tell :) (+/- open conversations)
docs/book/src/tasks/experimental-features/cluster-class/change-clusterclass.md
Outdated
Show resolved
Hide resolved
docs/book/src/tasks/experimental-features/cluster-class/change-clusterclass.md
Outdated
Show resolved
Hide resolved
internal/controllers/topology/cluster/structuredmerge/serversidepathhelper.go
Outdated
Show resolved
Hide resolved
Just 3 typos 🎉 |
Really great work! lgtm pending the 3 nits + squash from my side |
Co-authored-by: chrischdi <schlotterc@vmware.com> Co-authored-by: sbueringer <buringerst@vmware.com>
eaf2e61
to
2f6f77f
Compare
/lgtm |
/test pull-cluster-api-e2e-full-main |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
What this PR does / why we need it:
This PR makes the topology controller use server-side apply when applying changes, so we can leverage on the API server for handling controllers co-authoring the same object as described in https://kubernetes.io/docs/reference/using-api/server-side-apply/
Which issue(s) this PR fixes:
Fixes #6320