-
Notifications
You must be signed in to change notification settings - Fork 249
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
Cp/fix/tr delete with running pr #1737
Cp/fix/tr delete with running pr #1737
Conversation
This ignores all the taskruns attached to pipelinerun which are still running. Behaviour with keep, keep-since, all by default ignores taskruns attached to running pipelinerun. Behaviour if user gives taskrun name to delete will reassure before deleting , if user also specify -f flag then it deletes with a warning msg for each taskrun. this also adds ignore-running-pipelinerun flag. This will help user if they want to delete a taskrun in any case Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
fix taskrun getting deleted of running pipelinerun tektoncd#1736 Fix incomplete TaskRuns being deleted when --ignore-running=true tektoncd#1708 Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
/lgtm |
/lgtm |
@rupalibehera: changing LGTM is restricted to collaborators In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vinamra28 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 |
#1731 | [Piyush Garg] Bump to tektoncd/pipeline 0.36.1 | 2022/10/04-14:21 #1731 | [Piyush Garg] Fix pipeline and triggers version | 2022/10/04-14:21 #1737 | [Colin O'Dell] Fix --ignore-running unexpectedly deleting incomplete TaskRuns | 2022/10/07-14:41 #1737 | [Pradeep Kumar] fix taskrun getting deleted of running pipelinerun | 2022/10/07-14:41 #1737 | [Pradeep Kumar] [cherry-pick] taskrun delete fixes | 2022/10/07-14:41 Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
#1731 | [Piyush Garg] Bump to tektoncd/pipeline 0.36.1 | 2022/10/04-14:21 #1731 | [Piyush Garg] Fix pipeline and triggers version | 2022/10/04-14:21 #1737 | [Colin O'Dell] Fix --ignore-running unexpectedly deleting incomplete TaskRuns | 2022/10/07-14:41 #1737 | [Pradeep Kumar] fix taskrun getting deleted of running pipelinerun | 2022/10/07-14:41 #1737 | [Pradeep Kumar] [cherry-pick] taskrun delete fixes | 2022/10/07-14:41 Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
#1731 | [Piyush Garg] Bump to tektoncd/pipeline 0.36.1 | 2022/10/04-14:21 #1731 | [Piyush Garg] Fix pipeline and triggers version | 2022/10/04-14:21 #1737 | [Colin O'Dell] Fix --ignore-running unexpectedly deleting incomplete TaskRuns | 2022/10/07-14:41 #1737 | [Pradeep Kumar] fix taskrun getting deleted of running pipelinerun | 2022/10/07-14:41 #1737 | [Pradeep Kumar] [cherry-pick] taskrun delete fixes | 2022/10/07-14:41 Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
#1731 | [Piyush Garg] Bump to tektoncd/pipeline 0.36.1 | 2022/10/04-14:21 #1731 | [Piyush Garg] Fix pipeline and triggers version | 2022/10/04-14:21 #1737 | [Colin O'Dell] Fix --ignore-running unexpectedly deleting incomplete TaskRuns | 2022/10/07-14:41 #1737 | [Pradeep Kumar] fix taskrun getting deleted of running pipelinerun | 2022/10/07-14:41 #1737 | [Pradeep Kumar] [cherry-pick] taskrun delete fixes | 2022/10/07-14:41 Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.
Release Notes
With this fix
tkn
ignores to delete all the taskrun(s) attached to pipelinerun which arestill
running
(without a completion time).Behaviour with
keep, keep-since, all
by default ignores taskruns attached to runningpipelinerun.
Behaviour if user gives taskrun name to delete will reassure before deleting, if user
also specify -f flag then it deletes with a warning message for each taskrun.
This also adds
ignore-running-pipelinerun
flag will helps user to delete a taskrunattached to a running pipelienrun.