proposal: Improve static PVC handling code #6290
satoru-takeuchi
started this conversation in
General
Replies: 2 comments 2 replies
|
@satoru-takeuchi if i remember correct it was not only for static volumes but also for volumes which are created by earlier CSI driver. @iPraveenParihar PTAL |
0 replies
|
We considered early-exiting @satoru-takeuchi Do you have something in your mind to handle static volume early exit? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It's a proposal of improving static PVC handling code to improve readbility and maintainability.
Static PVC needs special handling in many places. Although current code seems to work well, some gRPC handlers looks a bit confising. For instance,
ControllerUnpublishVolume()returns successfulyl in error hander for older PVs with the following warning.It works but is not intuitive. In this case, I believe this function should explicitly check whether the PVC is a static and exits if the result is true. Although I didn't checked all gRPC handlers, some other handlers seems to have similar problems.
I'd like to change the above mentioned code if possible. What do you think?
All reactions