-
Notifications
You must be signed in to change notification settings - Fork 174
fix the platform restriction error providing more educational guidance #3062
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
fix the platform restriction error providing more educational guidance #3062
Conversation
…e ahead Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
|
Hi @RayyanSeliya. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3062 +/- ##
==========================================
+ Coverage 58.60% 59.39% +0.79%
==========================================
Files 133 133
Lines 17094 17120 +26
==========================================
+ Hits 10018 10169 +151
+ Misses 6146 5992 -154
- Partials 930 959 +29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
|
ptal @gauron99 @lkingland when you have some moments ! |
gauron99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added some comments here
cmd/build.go
Outdated
| Or remove the --platform flag: | ||
| func build --registry <registry> | ||
| Builder capabilities: | ||
| s2i Supports --platform (Source-to-Image) | ||
| pack Does not support --platform (uses default) | ||
| host Does not support --platform (uses host architecture) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I think we dont need this SO explicitly said. You are redundantly saying the same thing here. I would be in favor of removing this whole section and just keeping the previous and following lines
cmd/deploy.go
Outdated
| Builder capabilities: | ||
| s2i Supports --platform (Source-to-Image) | ||
| pack Does not support --platform (uses default) | ||
| host Does not support --platform (uses host architecture) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
|
BTW we have fixed the previous unrelated issue so once you make changes (or close and re-open the PR) those tests should be passing, if unrelated |
Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
gauron99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauron99, RayyanSeliya 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 |
Changes
/kind enhancement
Fixes #3061
Solution:
Implement a 2-layer error system
ErrPlatformNotSupportedfrom validation inpkg/functions/errors.gocmd/build.goandcmd/deploy.goand wrap with user-friendly guidanceRelease Note