-
Notifications
You must be signed in to change notification settings - Fork 394
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
🐛 controller: use the global informer to get Shards #2660
🐛 controller: use the global informer to get Shards #2660
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ncdc 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 |
Looks like something happened last week and a few PRs got stuck |
I think the PR hasn't been merged because of failing FYI #2651 should deflake |
/close |
@p0lyn0mial: Closed this PR. 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/test-infra repository. |
/reopen |
@p0lyn0mial: Reopened this PR. 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/test-infra repository. |
a536d53
to
f77a94f
Compare
I rebased against the master and pushed because I wasn't sure if |
|
|
pkg/server/controllers.go
Outdated
@@ -1274,7 +1274,7 @@ func (s *Server) installSyncTargetController(ctx context.Context, config *rest.C | |||
c := synctargetcontroller.NewController( | |||
kcpClusterClient, | |||
s.KcpSharedInformerFactory.Workload().V1alpha1().SyncTargets(), | |||
s.KcpSharedInformerFactory.Core().V1alpha1().Shards(), | |||
s.CacheKcpSharedInformerFactory.Core().V1alpha1().Shards(), |
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.
still seeing some tests failing in test/e2e/syncer pkg
. I will revert the change to synctargetcontroller
controller for now.
since Shard resources are only on the root shard the apiexport controller must use the global (cached) informer othweriwse the list will always be empty on a non-root shard.
f77a94f
to
01d4f40
Compare
/retest |
/test e2e-sharded |
1 similar comment
/test e2e-sharded |
/lgtm |
Summary
since Shard resources are only on the root shard all controllers must use the global (cached) informer otherwise the list will always be empty on a non-root shard.
Related issue(s)
xref: #2596