-
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.
Fix duplicated TaskRuns that occur when Pipeline/PipelineRun labels a…
…re changed The PipelineRun reconciler may be handed a PipelineRun that does not have a previous status update containing the names of TaskRuns it created. The PipelineRun reconciler attempts to deal with this by looking at the TaskRun lister cache for TaskRuns associated with the PipelineRun that are missing from the status and adding them. It uses the PipelineRun's labels to find them. If the user changes the PipelineRun's labels (or the Pipeline's labels which are propagated to the PipelineRun) while the pipeline is running, it may cause the code to not find existing TaskRuns and as a result it may duplicate them.
- Loading branch information
1 parent
bf8fb54
commit 1b2617c
Showing
2 changed files
with
122 additions
and
12 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