OCPEDGE-2255: baremetal: reject SNO installation on baremetal platform#10420
OCPEDGE-2255: baremetal: reject SNO installation on baremetal platform#10420fracappa wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
@fracappa: This pull request references OCPEDGE-2255 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 story 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 NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.3)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions 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 |
Add install-config validation to prevent SNO dpeloyments on the baremetal platform, providing immediate feedback instead of failing later
e133286 to
5b9a8d0
Compare
|
@fracappa: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
| allErrs = append(allErrs, field.Required(field.NewPath("controlPlane"), "controlPlane is required")) | ||
| } | ||
|
|
||
| if c.BootstrapInPlace != nil && c.Platform.Name() == baremetal.Name { |
There was a problem hiding this comment.
IMHO, the right way for checking if a cluster is SNO is to verify that that control-plane nodes replicas is set to 1. Bootstrap in place is also a key identifier, but you can install an SNO cluster without it, whereas all clusters with 1 control plane node are SNO.
|
It seems like we should already have validation for this: |
Add install-config validation to prevent SNO dpeloyments on the baremetal platform, providing immediate feedback instead of failing later