-
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
feat/Cancel taskrun using entrypoint binary #6511
feat/Cancel taskrun using entrypoint binary #6511
Conversation
/kind feature |
/hold |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
e53bdc8
to
bc96a34
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
bc96a34
to
0b8a9cb
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
0b8a9cb
to
cc99b2e
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
cc99b2e
to
0f2e740
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/hold cancel |
added a new func |
I changed the logic of this part to |
cancel or fail the taskrun has been merged into one function |
For PipelineRun or TaskRun reconciler, the cancellation logic is just changed from delete pod to patch pod |
The following is the coverage report on the affected files.
|
708ae81
to
cc78142
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
@chengjoey thank you for these contributions, and for the patience with the reviews
this pull request generally looks good to me, one ask is that you improve the code coverage to at least maintain the current coverage e.g. add a test case for setting the feature flag to something invalid
cc78142
to
7449f0f
Compare
Thanks~ i have added some test cases for |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@chengjoey Thanks for your work on this. The changes look good to me. Please rebase this PR. I'm happy to LGTM it after. |
through a new flag called 'stop_on_cancel'. This removes the need for deleting the pods to cancel a taskrun, allowing examination of the logs on the pods from cancelled taskruns. Part of work on issue tektoncd#3238 Signed-off-by: chengjoey <[email protected]>
7449f0f
to
a3d6e7f
Compare
Thanks @chitrangpatel , pr has been rebased |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-unit-tests |
/lgtm |
The cancellation of taskruns is now done through the entrypoint binary through a new flag called 'stop_on_cancel'. This removes the need for deleting the pods to cancel a taskrun, allowing examination of the logs on the pods from cancelled taskruns. Part of work on issue #3238
there are some codes carry over from #4618
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