-
Notifications
You must be signed in to change notification settings - Fork 222
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
WIP: NO-JIRA: Validate the CPU architectures set by users in the CRs #7224
base: master
Are you sure you want to change the base?
Conversation
There is an inconsistency about the name of the architecture to use in the InfraEnv and other CRDs using the OSImage object. Users can easily provide a different string for the CPUArchitecture fields in such CRs and no error would arise from them as they are not validated, making it harder for the user to debug and understand how to proceed with their deployment. This commit adds validation for the architecture field among the values in the set {arm64, ppc64le, s390x, x86_64} Related to openshift#4441
@aleskandro: This pull request explicitly references no jira issue. In 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: aleskandro The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc @jeffdyoung i'm not sure these are the expected values, but having at least some validation would mitigate the incosistencies in the architecture naming |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7224 +/- ##
==========================================
- Coverage 67.90% 67.89% -0.01%
==========================================
Files 298 298
Lines 40710 40710
==========================================
- Hits 27643 27640 -3
- Misses 10590 10592 +2
- Partials 2477 2478 +1 |
@aleskandro: The following tests failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
There is an inconsistency about the name of the architecture to use in the InfraEnv and other CRDs using the OSImage object. Users can easily provide a "wrong" value for the CPUArchitecture fields in such CRs and no error would arise at creation time as they are not validated, making it harder for the user to debug and understand how to proceed with their deployment.
This commit adds validation for the architecture field among the values in the set {arm64, ppc64le, s390x, x86_64}
Related to #4441 openshift/release#60815