-
Notifications
You must be signed in to change notification settings - Fork 972
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
Feature/add replicaset gc pg #2589
Feature/add replicaset gc pg #2589
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @k82cn |
d15debb
to
12acde8
Compare
12acde8
to
fdc3f83
Compare
@@ -96,6 +98,12 @@ func (pg *pgcontroller) Initialize(opt *framework.ControllerOption) error { | |||
pg.pgLister = pg.pgInformer.Lister() | |||
pg.pgSynced = pg.pgInformer.Informer().HasSynced | |||
|
|||
pg.rsInformer = opt.SharedInformerFactory.Apps().V1().ReplicaSets() | |||
pg.rsInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ |
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.
Whether to wait for rsInformer sync?
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.
Yes, it's necessary to wait for rsInformer sync. However, I think the reason for bug is in line 101, that rsInformer must be from pg.informerFactory.
Signed-off-by: Gaizhi <donghouze@minimac.com>
fdc3f83
to
5d781f9
Compare
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@RamezesDong can you merge the conflict? |
The implementation for #2585. To fix the bug #2143