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

OCPVE-677: chore: separate filter and lvm package from vgmanager #410

Conversation

jakobmoellerdev
Copy link
Contributor

Part of the findings of vgmanager testing. This separates vgmanager into 3 packages:

  1. lvm, now contains ALL calls to LVM in the codebase
  2. filter, now contains our filter methods and gets included from vgmanager
  3. vgmanager, now only calls to lvm and filter in the correct places

Also the previously raw command executor calls for thinpool creation/extension were moved into separate methods in lvm package so that the perogative to contain all lvm calls still remains.

@jakobmoellerdev jakobmoellerdev changed the title chore: separate filter and lvm package from vgmanager OCPVE-677: chore: separate filter and lvm package from vgmanager Sep 8, 2023
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 8, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 8, 2023

@jakobmoellerdev: This pull request references OCPVE-677 which is a valid jira issue.

In response to this:

Part of the findings of vgmanager testing. This separates vgmanager into 3 packages:

  1. lvm, now contains ALL calls to LVM in the codebase
  2. filter, now contains our filter methods and gets included from vgmanager
  3. vgmanager, now only calls to lvm and filter in the correct places

Also the previously raw command executor calls for thinpool creation/extension were moved into separate methods in lvm package so that the perogative to contain all lvm calls still remains.

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/test-infra repository.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 8, 2023
@jakobmoellerdev
Copy link
Contributor Author

/test lvm-operator-e2e-aws-sno

2 similar comments
@jakobmoellerdev
Copy link
Contributor Author

/test lvm-operator-e2e-aws-sno

@jakobmoellerdev
Copy link
Contributor Author

/test lvm-operator-e2e-aws-sno

@suleymanakbas91
Copy link
Contributor

I loved this!
/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 8, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jakobmoellerdev, suleymanakbas91

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 8, 2023
@jakobmoellerdev
Copy link
Contributor Author

/test lvm-operator-e2e-aws-sno

@jakobmoellerdev
Copy link
Contributor Author

/test lvm-operator-e2e-aws

@codecov-commenter
Copy link

Codecov Report

Merging #410 (e0a0dd1) into main (8da92ee) will decrease coverage by 1.54%.
Report is 6 commits behind head on main.
The diff coverage is 10.71%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #410      +/-   ##
==========================================
- Coverage   55.01%   53.48%   -1.54%     
==========================================
  Files          27       27              
  Lines        2341     2468     +127     
==========================================
+ Hits         1288     1320      +32     
- Misses        965     1062      +97     
+ Partials       88       86       -2     
Files Changed Coverage Δ
pkg/filter/filter.go 61.22% <0.00%> (ø)
pkg/lvm/lvm.go 38.25% <0.00%> (ø)
pkg/vgmanager/status.go 0.00% <0.00%> (ø)
pkg/vgmanager/vgmanager_controller.go 11.41% <5.00%> (+1.91%) ⬆️
pkg/vgmanager/devices.go 75.78% <33.33%> (-0.60%) ⬇️

... and 1 file with indirect coverage changes

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 8, 2023

@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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 8208b3a into openshift:main Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants