-
Notifications
You must be signed in to change notification settings - Fork 201
Optimize k8s client creation for snapshot limit checks #3845
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
Optimize k8s client creation for snapshot limit checks #3845
Conversation
36bcbdd to
c110ae6
Compare
Signed-off-by: Deepak Kinni <deepak.kinni@broadcom.com>
c110ae6 to
c1e36ea
Compare
|
FAILED --- Jenkins Build #842 |
|
Triggering CSI-TKG Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
|
Triggering CSI-TKG Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
|
Triggering CSI-TKG Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
|
SUCCESS --- Jenkins Build #846 |
|
Can you add your pre-check pipeline link to the PR description? |
|
/approve |
divyenpatel
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepakkinni, divyenpatel, xing-yang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR optimizes the Kubernetes client creation in the WCP CSI controller by initializing it once during controller startup instead of creating a new client on every snapshot operation. This reduces performance overhead, memory allocations, and API server load.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #Testing done:
Precheckins(WCP) PASS: https://jenkins-vcf-csifvt.devops.broadcom.net/job/wcp-instapp-e2e-pre-checkin/846/
Precheckins(VKS) PASS: https://jenkins-vcf-csifvt.devops.broadcom.net/job/vks-instapp-e2e-pre-checkin/786/
Test Link: https://gist.github.com/deepakkinni/faa1c69b3f21ffeb3843011b60fad7ee
Special notes for your reviewer:
Release note: