Skip to content
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

Conversation

pradeepitm12
Copy link
Contributor

@pradeepitm12 pradeepitm12 commented Oct 7, 2022

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

With this fix tkn ignores to delete all the taskrun(s) attached to pipelinerun which are
still running(without a completion time).

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 message for each taskrun.

This also adds ignore-running-pipelinerun flag will helps user to delete a taskrun
attached to a running pipelienrun.

colinodell and others added 3 commits October 7, 2022 14:48
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>
@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Oct 7, 2022
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 7, 2022
@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2022
@rupalibehera
Copy link
Member

/lgtm

@tekton-robot
Copy link
Contributor

@rupalibehera: changing LGTM is restricted to collaborators

In response to this:

/lgtm

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.

@tekton-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 7, 2022
@tekton-robot tekton-robot merged commit 7a6a8cc into tektoncd:release-v0.24.0 Oct 7, 2022
pradeepitm12 added a commit that referenced this pull request Oct 7, 2022
#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>
pradeepitm12 added a commit that referenced this pull request Oct 7, 2022
#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>
pradeepitm12 added a commit that referenced this pull request Oct 7, 2022
#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>
pradeepitm12 added a commit that referenced this pull request Oct 7, 2022
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants