-
Notifications
You must be signed in to change notification settings - Fork 962
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 CSI Plugin node server logic #1582
Optimize CSI Plugin node server logic #1582
Conversation
Signed-off-by: TrafalgarZZZ <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1582 +/- ##
=======================================
Coverage 70.76% 70.76%
=======================================
Files 238 238
Lines 13129 13129
=======================================
Hits 9291 9291
Misses 2843 2843
Partials 995 995
Continue to review full report at Codecov.
|
return volume.GetNamespacedNameByVolumeId(ns.apiReader, volumeId) | ||
} | ||
|
||
// getNode first checks cached node | ||
func (ns *nodeServer) getNode() (node *v1.Node, err error) { |
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.
Need add UT for this function.
Signed-off-by: TrafalgarZZZ <[email protected]>
Signed-off-by: TrafalgarZZZ [email protected]
Ⅰ. Describe what this PR does
Optimize CSI Plugin node server logic.
This PR caches node to avoid frequent requests to api server
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews