-
Notifications
You must be signed in to change notification settings - Fork 43
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
OCPEDGE-1169: fix: device selection only by filter #679
OCPEDGE-1169: fix: device selection only by filter #679
Conversation
@jakobmoellerdev: This pull request references OCPEDGE-1169 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.17.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jakobmoellerdev The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test all |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #679 +/- ##
==========================================
+ Coverage 57.78% 58.52% +0.74%
==========================================
Files 55 55
Lines 4285 4282 -3
==========================================
+ Hits 2476 2506 +30
+ Misses 1559 1533 -26
+ Partials 250 243 -7
|
Signed-off-by: Jakob Möller <[email protected]>
d86eaa5
to
4354446
Compare
/test all |
/test unit-test |
@jakobmoellerdev: This pull request references OCPEDGE-1169 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.17.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/lgtm |
/test e2e-aws |
@jakobmoellerdev: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This changes our device selection methodology to try to unify all selection criteria into the filters.
Previously, we had a complex flow with getNewDevicesToBeAdded and filters together.
This now changes this so that all filter criteria are purely handled through filterDevices.
It achieves this by:
VerifyMandatoryDevicePaths(devs FilteredBlockDevices, paths[]string) error
as a shortcut to determine if a given path is already setup. This can be used together with.Spec.storage.deviceClasses[].deviceSelector.Paths
to ensure presence of mandatory paths. For optional paths this check is simply skipped