Bug 2065726 - assisted-service repo pin-latest.py script should allow custom tags to be pinned
Summary: assisted-service repo pin-latest.py script should allow custom tags to be pinned
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Infrastructure Operator
Version: rhacm-2.6
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: rhacm-2.5
Assignee: Omer Tuchfeld
QA Contact:
Derek
URL:
Whiteboard:
Depends On: 2065661
Blocks: 2072892
TreeView+ depends on / blocked
 
Reported: 2022-03-18 15:05 UTC by OpenShift BugZilla Robot
Modified: 2022-10-03 20:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2072892 (view as bug list)
Environment:
Last Closed: 2022-10-03 20:21:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 3509 0 None open [release-ocm-2.5] Bug 2065726: `pin-latest.py` should allow a custom tag to be set 2022-03-21 01:01:19 UTC
Github stolostron backlog issues 20917 0 None None None 2022-03-18 19:23:05 UTC
Red Hat Issue Tracker MGMTBUGSM-301 0 None None None 2022-04-13 19:32:58 UTC

Description OpenShift BugZilla Robot 2022-03-18 15:05:44 UTC
+++ This bug was initially created as a clone of Bug #2065661 +++

Description of the problem:
When publishing the Infrastructure Operator bundle and catalog to quay for the master branch, we scan the operator's manifests (clusterserviceversion in particular) for the "latest" tag and pin it to a particular image manifest digest. This is done using the pin-latest.py script and the choice of "latest" tag is hardcoded in that script. 

We would like to use the same script for doing similar pinning but for our release branches. In those release branches, the CSV manifest doesn't have :latest tags, it has, for example, ocm-2.5 tags. 

The script should be modified to accept, through an environment variable, a different tag that needs to be pinned, so it can be used in release branch catalog/bundle quay publishing CI jobs.


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