-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fixed the issue that bound PVC was not filtered #1556
Conversation
|
||
//Filter the bound pvc | ||
if pvc.Status.Phase == "Bound" { | ||
continue | ||
} | ||
|
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.
this change may cause confusion of this func getAssociatedVolumes
, the filter logic may happen where these associated volumes are used
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.
This function is currently only responsible for calculating the capacity when creating a volume. I think it might be more convenient to use if we change its name.
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.
I modified the code.According to analysis, only the vol passed when creating vol for the first time is a virtual one without config parameters. If it is a migration or expansion scenario, it will not be affected.
Signed-off-by: peng9808 <peng.lai@daocloud.io>
What this PR does / why we need it:
#1554
Special notes for your reviewer:
NONE
Does this PR introduce a user-facing change?
NONE