-
Notifications
You must be signed in to change notification settings - Fork 8
refactor agent to use multicluster-runtime #72
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
Conversation
On-behalf-of: @SAP [email protected]
On-behalf-of: @SAP [email protected]
On-behalf-of: @SAP [email protected]
On-behalf-of: @SAP [email protected]
On-behalf-of: @SAP [email protected]
On-behalf-of: @SAP [email protected]
/unhold |
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.
/approve
LGTM label has been added. Git tree hash: d615f19068e45a660571b409149b461952bb456c
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: embik 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 |
Summary
This PR refactors the agent to make use of multicluster-runtime and the apiexport provider from multicluster-provider.
Notably, since kube clients do not use the context anymore to switch between clusters, many functions in the syncer now have a dedicated singular
ctx
parameter that is used for all kube interactions on both sides of the sync.The e2e tests make use of the ClusterClient in multicluster-runtime to still be scopable down to a specific workspace (but not by setting a context anymore, but by calling
.Cluster(<name>)
).Even though the agent is now based on 0.28, it still tests against 0.27 because we found kcp-dev/kcp#3527 during testing (and there are more slight adjustments that we'd need to make to support 0.28).
What Type of PR Is This?
/kind feature
Release Notes
/hold
This must not be merged before kcp 0.28 is released.