-
Notifications
You must be signed in to change notification settings - Fork 200
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
feat(cstor-operator): filter out released block devices during auto provisioning #1310
feat(cstor-operator): filter out released block devices during auto provisioning #1310
Conversation
…es during auto provisioning Signed-off-by: mittachaitu <[email protected]>
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.
lgtm
@@ -289,6 +291,19 @@ func filterNonSparseDevices(originalList *BlockDeviceList) *BlockDeviceList { | |||
return filteredList | |||
} | |||
|
|||
func filterNonRelesedDevices(originalList *BlockDeviceList) *BlockDeviceList { |
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.
Let us write a comment for this function. Is this supposed to return a list of BDs whose claimstate is "Released" ?
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.
It will return BDs whose claimstate is other than Released
. Will add a comment in next PR
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.
changes are good
FilterSparseDevices = "filterSparseDevices" | ||
FilterNonSparseDevices = "filterNonSparseDevices" | ||
InActiveStatus = "Inactive" | ||
FilterNonRelesedDevices = "filterNonRelesedDevices" |
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.
Spell check
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.
Corrected in cherry-pick PR will do it in next PR
…rovisioning (openebs-archive#1310) Signed-off-by: mittachaitu <[email protected]>
… during auto provisioning (#1312) * fix(cstor-operator): honour spc type in case of manual provisioning of cStor pool (#1281) Signed-off-by: mittachaitu <[email protected]> * feat(cstor-operator): filter out released block devices during auto provisioning (#1310) Signed-off-by: mittachaitu <[email protected]>
Signed-off-by: mittachaitu [email protected]
What this PR does / why we need it:
This PR adds the filter to filter out block devices which are in released state during auto provision mode.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Checklist:
documentation
tagbreaking-changes
tagrequires-upgrade
tag