-
Notifications
You must be signed in to change notification settings - Fork 57
CNV-79541: Fix incorrect minimum disk size validation for CD-ROM #3459
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
base: main
Are you sure you want to change the base?
CNV-79541: Fix incorrect minimum disk size validation for CD-ROM #3459
Conversation
The template drawer was enforcing the root disk minimum size (e.g. 60 GiB) on the CD-ROM source input. The CD-ROM is independent from the root disk and should not have this constraint. Only enforce the root disk minimum when withSize is true, which is only set for the actual disk source. Co-authored-by: Cursor <[email protected]>
|
@upalatucci: This pull request references CNV-79541 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 bug to target the "4.22.0" version, but no target version was set. DetailsIn 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: upalatucci The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
📝 WalkthroughWalkthroughModified conditional logic in the SelectSource component to calculate minDiskValue only when withSize is true. This affects downstream validation logic affecting the isMinusDisabled state. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@upalatucci: This pull request references CNV-79541 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 bug to target the "4.22.0" version, but no target version was set. DetailsIn 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. |
|
@upalatucci: This pull request references CNV-79541 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 bug to target the "4.22.0" version, but no target version was set. DetailsIn 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. |
|
@upalatucci: This pull request references CNV-79541 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 bug to target the "4.22.0" version, but no target version was set. DetailsIn 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. |
|
/hold |


📝 Description
The template catalog drawer was incorrectly enforcing the root disk minimum size (e.g. 60 GiB) on the CD-ROM source input. The
SelectSourcecomponent always computedminDiskValuefrom the root disk viagetRootDiskStorageRequests, regardless of whether it was being used for the CD-ROM or the main disk.This fix only enforces the root disk minimum when
withSizeistrue, which is only passed for the actual disk source. For the CD-ROM source (withSizedefaults tofalse),minDiskValueis nowundefined, correctly skipping the minimum size validation.Jira: https://issues.redhat.com/browse/CNV-79541
🎥 Demo
BEFORE

AFTER
No error message
Summary by CodeRabbit