-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid requeuing taskrun in case of permanent error
When a taskrun is rejected with permanent error, reconciler should not try to requeue the taskrun. After a permanent error is raised in prepare function call, reconciler enters the tr.IsDone block. In that block, sidecars were being terminated without any check on pod name. Such rejected taskrun has no pod name associated with it since a pod is never created. Reconciler fails to run such Get command and returns a normal error. Next reconciler cycle runs with this normal error instead of permanent error and tries to requeue the taskrun until reconciler exhausts the allowed retries. These changes are introduced to add a check if pod was created for a taskrun before cleaning up the sidecars. Most of the changes in this PR are introduced based on the pipelinerun.go
- Loading branch information
1 parent
51a02c8
commit 5759a85
Showing
3 changed files
with
99 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters