-
Notifications
You must be signed in to change notification settings - Fork 8
Add initializing virtual workspace provider #25
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
|
Skipping CI for Draft Pull Request. |
f5f978d to
c546304
Compare
532b2c1 to
eb2654b
Compare
db664a7 to
b896fdf
Compare
1291f52 to
ba11d92
Compare
embik
left a comment
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.
Haven't done a deep dive into the code, just some changes regarding code structure.
96e48eb to
116e31f
Compare
embik
left a comment
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 notes.
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.
Pull Request Overview
This PR adds a new initializingworkspaces virtual workspace provider for KCP, allowing controllers to reconcile workspaces in the initializing phase. The provider shares common functionality with the existing apiexport provider by refactoring cache implementation into a shared internal/cache package.
Key changes:
- Extracts cache implementation from
apiexportpackage tointernal/cachefor reuse - Adds new
initializingworkspacesprovider implementation - Updates function visibility to support shared usage across packages
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
initializingworkspaces/provider.go |
Core provider implementation for initializing workspaces |
internal/cache/*.go |
Refactored cache implementation moved from apiexport package |
test/e2e/initializingworkspaces_test.go |
E2E test for the new provider |
examples/initializingworkspaces/ |
Example controller and documentation |
apiexport/provider.go |
Updated imports to use refactored cache package |
c085cfa to
65e9d46
Compare
133ed03 to
569f3e1
Compare
569f3e1 to
3d9bee3
Compare
Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected] add example on initializing workspaces Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected] add initvw example controller Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected] update code structure and fix linters Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected] add specific cluster and start individual cache Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected] intercept clusterName with event handler Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected] implement routed client to use wildcard cache fetching LogicalClusters Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
…pedCluster func Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected] Address review comments and clean up old code Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
3d9bee3 to
de20df4
Compare
embik
left a comment
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: 7eb240d1dc12301d87d16a6966c505621a60f57a
|
|
[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
Adding the provider for initializingworkspaces, sharing the code with
apiexportprovider.Added example of controller and e2e test.
What Type of PR Is This?
/kind feature
Related Issue(s)
Fixes #17
Release Notes