-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add granular termination reason in container termination message #7565
Conversation
Hi @renzodavid9. Thanks for your PR. I'm waiting for a tektoncd 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. 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/test-infra repository. |
/ok-to-test |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
bc8f39b
to
f4e2112
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
f4e2112
to
3d49e11
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/assign @chitrangpatel @JeromeJu |
Thanks @renzodavid9 , this change generally looks good to me following up the discussion at #7539 . Would you mind adding a bit explanation at taskrun.md i.e. https://github.com/tektoncd/pipeline/blob/main/docs/taskruns.md#the-status-field. |
3d49e11
to
26c4755
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Thanks @JeromeJu, I added the field to the section you mentioned and in a couple of examples where we are referencing the |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chitrangpatel, JeromeJu 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 |
Thanks @renzodavid9 for all your hardwork! |
@AlanGreene @vdemeester PTAL to ensure that this wont break dashboard etc. |
Related with tektoncd#7539 and tektoncd#7223 To report specific Steps termination reasons we need to know why its continer finished; we use the termination message to store a new "state" with this information. We are adding a new field to store this information per step. Co-authored-by: JeromeJu <46675578+JeromeJu@users.noreply.github.com> Co-authored-by: Chitrang Patel <chitrang@google.com>
26c4755
to
e76905e
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
As long as this is just adding a new field and leaving the existing fields as they are (as discussed in the issue) it will be fine for the Dashboard at least. |
/lgtm |
Fixes #7223 and #7539
To report specific Steps termination reasons we need to know why its container finished; we use the termination message to store a new "state" with this information. To avoid breaking changes we are introducing a new
status.steps[].terminationReason
in TaskRun, to store the information from the container state for each step.The schema conversion logic for v1beta1 to v1 is modified to take into account the new field introduced in v1 TaskRun.
/kind feature
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes