-
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.
Propagate Labels and Annotations from Pipeline to PipelineRun
Currently, a `PipelineRun` started in a `Cancelled` or `Pending` state doesn't receive labels and annotations from the `Pipeline`. As such, a user cannot find all the `PipelineRuns` related to a given `Pipeline`. This is especially a challenge for a user searching for associated `PipelineRuns` in `Pending` state in order to start them. In this change, we ensure that the `Labels` and `Annotations` are propagated from the `Pipeline` to the `PipelineRun`. This involves refactoring the order of execution in the reconcile loop. In addition, we fix a test case that was meant to test for cancellation but wasn't configured correctly (was missing the `Pipeline` in test). Fixes #3903.
- Loading branch information
Showing
2 changed files
with
127 additions
and
33 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