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

OCPEDGE-922: Bring more visibility to dynamic device discovery by warnings and a new status field #615

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

suleymanakbas91
Copy link
Contributor

@suleymanakbas91 suleymanakbas91 commented Apr 24, 2024

This PR adds some admission warnings and more visibility through a status field in LVMCluster CRD in case the dynamic device discovery is enabled by not setting a DeviceSelector.

The new status field is called DeviceDiscoveryPolicy:

  • If set to DeviceDiscoveryPolicyPreconfigured, the devices are preconfigured through a DeviceSelector.
  • If set to DeviceDiscoveryPolicyRuntimeDynamic, the devices are added to the VG if they are present at runtime.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 24, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 24, 2024

@suleymanakbas91: This pull request references OCPEDGE-922 which is a valid jira issue.

In response to this:

This PR adds some admission warnings and more visibility through a status field in LVMCluster CRD in case the dynamic device discovery is enabled by not setting a DeviceSelector.

The new status field is called DeviceDiscoveryPolicy:

  • If set to DeviceDiscoveryPolicyPreConfigured, the devices are preconfigured through a DeviceSelector.
  • If set to DeviceDiscoveryPolicyRuntimeDynamic, the devices are added to the VG if they are present at runtime.

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.

@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 24, 2024
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 24, 2024
@openshift-ci openshift-ci bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 24, 2024
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition and not as crazy as my previous attempt. Overall lgtm, just a few minor things for docs and a small nit on the warning generation

api/v1alpha1/lvmcluster_webhook.go Show resolved Hide resolved
api/v1alpha1/lvmvolumegroupnodestatus_types.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.75%. Comparing base (7a7d364) to head (5fde32c).
Report is 2 commits behind head on main.

❗ Current head 5fde32c differs from pull request most recent head 2e057bf. Consider uploading reports for the commit 2e057bf to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #615      +/-   ##
==========================================
+ Coverage   77.66%   77.75%   +0.09%     
==========================================
  Files          27       27              
  Lines        1952     1960       +8     
==========================================
+ Hits         1516     1524       +8     
  Misses        319      319              
  Partials      117      117              
Files Coverage Δ
api/v1alpha1/lvmcluster_webhook.go 83.72% <100.00%> (+0.30%) ⬆️
api/v1alpha1/lvmvolumegroupnodestatus_types.go 100.00% <ø> (ø)
internal/controllers/vgmanager/status.go 78.94% <100.00%> (+0.76%) ⬆️

@suleymanakbas91 suleymanakbas91 force-pushed the greedy-warn branch 2 times, most recently from 5fde32c to 2e057bf Compare April 24, 2024 12:46
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 24, 2024

@suleymanakbas91: This pull request references OCPEDGE-922 which is a valid jira issue.

In response to this:

This PR adds some admission warnings and more visibility through a status field in LVMCluster CRD in case the dynamic device discovery is enabled by not setting a DeviceSelector.

The new status field is called DeviceDiscoveryPolicy:

  • If set to DeviceDiscoveryPolicyPreconfigured, the devices are preconfigured through a DeviceSelector.
  • If set to DeviceDiscoveryPolicyRuntimeDynamic, the devices are added to the VG if they are present at runtime.

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.

…nd a new status field

Signed-off-by: Suleyman Akbas <sakbas@redhat.com>
Copy link
Contributor

openshift-ci bot commented Apr 24, 2024

@suleymanakbas91: 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.

Copy link
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 24, 2024
Copy link
Contributor

openshift-ci bot commented Apr 24, 2024

[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:
  • OWNERS [jakobmoellerdev,suleymanakbas91]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit d36d392 into openshift:main Apr 24, 2024
9 checks passed
@suleymanakbas91 suleymanakbas91 deleted the greedy-warn branch April 24, 2024 17:47
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.

4 participants