Skip to content
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

Merged

Conversation

TrafalgarZZZ
Copy link
Member

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

@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #1582 (f06bafe) into master (f9faf04) will not change coverage.
The diff coverage is n/a.

❗ Current head f06bafe differs from pull request most recent head f4ed7ca. Consider uploading reports for the commit f4ed7ca to get more accurate results

@@           Coverage Diff           @@
##           master    #1582   +/-   ##
=======================================
  Coverage   70.76%   70.76%           
=======================================
  Files         238      238           
  Lines       13129    13129           
=======================================
  Hits         9291     9291           
  Misses       2843     2843           
  Partials      995      995           
Impacted Files Coverage Δ
pkg/ddc/goosefs/transform_permission.go 66.66% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9faf04...f4ed7ca. Read the comment docs.

return volume.GetNamespacedNameByVolumeId(ns.apiReader, volumeId)
}

// getNode first checks cached node
func (ns *nodeServer) getNode() (node *v1.Node, err error) {
Copy link
Collaborator

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.

@cheyang cheyang merged commit 68dca7a into fluid-cloudnative:master Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants