-
Notifications
You must be signed in to change notification settings - Fork 243
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
Disable preStart event using validations #4405
Disable preStart event using validations #4405
Conversation
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.
Something's off here. When I do odo push
, I see:
$ odo push
✗ devfile events validation error:
preStart type events are invalid:
some-command does not map to a valid devfile command
I expected to see something along the lines of:
$ odo push
✗ devfile events validation error:
"preStart" type events are not supported in odo
Also, are the integration tests written with the assumption that
|
This is actually correct. This is a validation that comes from |
Second time in less than 24 hours that I misunderstood or didn't know what
|
Some rebase mess up here #4405 (commits)? |
preStart even is still not clearly defined in Devfile and it is clear how it should be defined. This will make sure that noone is using PreStart event until we have a proper implementation.
784c543
to
fdb50fa
Compare
fixed |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel 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 |
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.
Just a question about comment vs. deleting. But it's not a show stopper.
/lgtm
/retest Please review the full test history for this PR and help us cut down flakes. |
|
What type of PR is this?
/kind bug
What does does this PR do / why we need it:
preStart even is still not clearly defined in Devfile and it is clear how it should be defined. This will make sure that no one is using PreStart event until we have a proper implementation.
Which issue(s) this PR fixes:
Fixes #4187
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer:
Create a devfile with the preStart event command