-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 generic informer #4375
add generic informer #4375
Conversation
d4ffde9
to
3648a14
Compare
/assign @vincentgoat @gy95 @fisherxu @Shelley-BaoYue |
/lgtm |
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.
can merge this patch first, and do another refactor
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.
can do this in another PR.
fcd5097
to
7a8c764
Compare
Signed-off-by: wackxu <xushiwei5@huawei.com>
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fisherxu, gy95 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 |
Signed-off-by: wackxu xushiwei5@huawei.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
For now, we use dynamic informer in the dynamic controller and use built-in informer in the edgecontroller, So If user use the list-watch and enable dynamic controller, there will be two informer and for mainly used k8s built-in resources, there maybe two informers for one resources and it will increase the memory usage for cloudcore, especially in large scale scenarios.
And also in the synccontroller, we have a period sync for objectsync, and for every objectsync, we need access the kube-apiserver to make sure the resource exists or not, and this increase the burden of kube-apiserver, so we change to get the resource from the informer cache to reduce the call to the apiserver
Special notes for your reviewer:
Does this PR introduce a user-facing change?: