-
Notifications
You must be signed in to change notification settings - Fork 253
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
Do Not Delete ClusterTask TaskRuns with --task Flag #1227
Conversation
@@ -65,14 +64,3 @@ func FilterByRef(taskruns []v1beta1.TaskRun, kind string) []v1beta1.TaskRun { | |||
} | |||
return filtered | |||
} | |||
|
|||
// this will filter the taskkrun which have reference to Task |
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.
This isn't used anywhere in the CLI, so I removed it. Let me know if there are considerations around it I am not aware of.
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.
I am also not sure about this.
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.
/cc @pradeepitm12 Not sure if you are more familiar with this?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: piyush-garg 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 |
/lgtm |
/test pull-tekton-cli-build-tests |
1 similar comment
/test pull-tekton-cli-build-tests |
/retest |
When running
tkn tr delete
with the--task
option, if a ClusterTask exists with the same name, the ClusterTask's TaskRuns will also be deleted. This is because of TaskRuns for ClusterTasks having thetekton.dev/task
label, which will be removed in January 2021.For now, the workaround is to filter the TaskRuns by the TaskRefKind, ignoring the run for the deletion process if its kind is
ClusterTask
. A follow up to this pr should be an option added totkn tr delete
to delete TaskRuns associated with a ClusterTask.Submitter Checklist
make check
make generated
Release Notes