-
Notifications
You must be signed in to change notification settings - Fork 244
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
[#5330] Make odo build-images
return an error if no Image component found in Devfile
#5608
[#5330] Make odo build-images
return an error if no Image component found in Devfile
#5608
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
973b3d9
to
03bfa2c
Compare
As reported in redhat-developer#5330, this makes more sense rather than exiting silently.
03bfa2c
to
de29eb3
Compare
Kudos, SonarCloud Quality Gate passed!
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: valaparthvi 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 |
@rm3l Feel free to override prow test if it fails. IBM tests pass, so we're good to go. |
… Image component found in Devfile (redhat-developer#5608) * Add test highlighting the issue * Make `odo build-images` return an error if no Image component found As reported in redhat-developer#5330, this makes more sense rather than exiting silently.
What type of PR is this:
/kind bug
What does this PR do / why we need it:
See #5330 for more context.
Which issue(s) this PR fixes:
Fixes #5330
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer:
When running
odo build-images
with a Devfile that has noImage
component in it, the command should not succeed and should output an error message on the standard error instead, like so: