Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly annotate TaskRuns with release version.
Previously we were expecting TaskRuns to be decorated with an annotation specifying the release version of the tekton controller, however, the place that was populating these annotations was extremely subtle and fragile. The annotation was set as part of synthesizing the `Pod` to create where the Pod's annotations were based on the `TaskRun`'s. This contains two main changes: 1. Explicitly copy the `TaskRun`'s annotations when populating the pod's annotations to eliminate this implicit and fragile back-propagation of annotations. 2. Add an explicit decoration of the annotation, which is less fragile and executed regardless of whether the Pod is being created during this reconciliation pass. Fixes: #4421
- Loading branch information