Bug 1970470

Summary: Add pipeline annotation to Secrets which are created for a private repo
Product: OpenShift Container Platform Reporter: Mohammed Saud <msaud>
Component: Dev ConsoleAssignee: Mohammed Saud <msaud>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: medium Docs Contact: Rishu Mehra <rmehra>
Priority: high    
Version: 4.6CC: aos-bugs, hmishra, kjeeyar, nmukherj
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, pipelines created in the *Git Import* flow for private repositories failed to run. This happened because the pipeline `ServiceAccount` object did not use secrets created by the *Git Import* flow for private Git repositories. With this update, you can add a secret name to the annotations of the pipeline `ServiceAccount` object, and add pipeline-specific annotations to the provided secret. As a result, pipelines for private Git repositories run successfully. (link:https://bugzilla.redhat.com/show_bug.cgi?id=1970470[*BZ#1970470*]
Story Points: ---
Clone Of:
: 1970485 (view as bug list) Environment:
Last Closed: 2021-07-27 23:12:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1970485    

Description Mohammed Saud 2021-06-10 14:17:00 UTC
Description of problem:
Pipeline created as part of git import flow do not work for private git repositories.

How reproducible:
Always

Steps to Reproduce:
Create deployment from a private git repo, and check the add pipeline option.

Actual results:
Pipeline fails to run, as it does not use the git secret provided.

Expected results:
Pipeline should run successfully, using the secret.

Comment 1 Karthik Jeeyar 2021-06-10 14:55:01 UTC
Verified on 4.8.0-0.nightly-2021-06-09-214128.

Comment 4 errata-xmlrpc 2021-07-27 23:12:40 UTC
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 (Moderate: OpenShift Container Platform 4.8.2 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-2021:2438