Bug 1970470 - Add pipeline annotation to Secrets which are created for a private repo
Summary: Add pipeline annotation to Secrets which are created for a private repo
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.8.0
Assignee: Mohammed Saud
QA Contact: Gajanan More
Rishu Mehra
URL:
Whiteboard:
Depends On:
Blocks: 1970485
TreeView+ depends on / blocked
 
Reported: 2021-06-10 14:17 UTC by Mohammed Saud
Modified: 2021-09-15 17:45 UTC (History)
4 users (show)

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*]
Clone Of:
: 1970485 (view as bug list)
Environment:
Last Closed: 2021-07-27 23:12:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9058 0 None closed Bug 1970470: Add pipeline annotation to secrets for private git repo import with pipeline 2021-06-10 14:52:45 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:12:57 UTC

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


Note You need to log in before you can comment on or make changes to this bug.