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

Add physicalDisk and controller WebHook validation for HardwareRAID #1070

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

demonCoder95
Copy link
Member

This patch adds WebHook validation for Hardware RAID to validate the following:

  1. physicalDisks specified without controller not allowed.
  2. numberOfPhysicalDisks and length of physicalDisks must be consistent.

This is in accordance with the WebHook validation outline provided in #855 . The functionality that enables these parameters in HardwareRAID is available in #1062

The patch also provides unit test coverage for the validations added into the WebHook.

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 14, 2022
@demonCoder95
Copy link
Member Author

/test-v1b1-integration

@demonCoder95
Copy link
Member Author

/test-v1b1-centos-integration

@zaneb
Copy link
Member

zaneb commented Jan 14, 2022

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 14, 2022
@demonCoder95
Copy link
Member Author

/lgtm

Let's wait for someone to approve this as well, after reviewing? Perhaps @andfasano

@andfasano
Copy link
Member

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andfasano

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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 14, 2022
@metal3-io-bot metal3-io-bot merged commit 99a62c5 into metal3-io:main Jan 14, 2022
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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants