Cause: When a pipeline is started using the "start last run" button, the created PipelineRun's `started-by` annotation is not updated to the correct username.
Consequence: If a user starts a pipeline using the "start last run" button, and if the user had not started the pipeline previously, the "Triggered by" section does not show the correct username.
Fix: Update the PipelineRun's `started-by` annotation value to the correct username.
Result: The "triggered by" section shows the username of the correct user that started the pipeline.
Description of problem:
Started-by annotation is being copied from the previous run and fails to override the annotation with the name of the user who triggered the start last run action.
Version-Release number of selected component (if applicable):
4.9
How reproducible:
Always
Steps to Reproduce:
1. Start a pipeline as kube:admin user
2. Login as consoledeveloper user and Click on Start last run from the kebab menu.
Actual results:
The annotation still contains kube:admin as started-by value.
annotations:
pipeline.openshift.io/started-by: 'kube:admin'
Expected results:
The annotation should contain consoledeveloper
annotations:
pipeline.openshift.io/started-by: 'consoledeveloper'
OpenShift version
4.11.0-0.nightly-2022-02-12-075213
Kubernetes version
v1.23.3+f14faf2
Channel
stable-4.10
Cluster ID
74cb483f-3f55-496f-b18e-b8a12817ce2d
API server
https://api.rhamilto.devcluster.openshift.com:6443
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2022:5069
Description of problem: Started-by annotation is being copied from the previous run and fails to override the annotation with the name of the user who triggered the start last run action. Version-Release number of selected component (if applicable): 4.9 How reproducible: Always Steps to Reproduce: 1. Start a pipeline as kube:admin user 2. Login as consoledeveloper user and Click on Start last run from the kebab menu. Actual results: The annotation still contains kube:admin as started-by value. annotations: pipeline.openshift.io/started-by: 'kube:admin' Expected results: The annotation should contain consoledeveloper annotations: pipeline.openshift.io/started-by: 'consoledeveloper'