Bug 2065661

Summary: assisted-service repo pin-latest.py script should allow custom tags to be pinned
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Omer Tuchfeld <otuchfel>
Component: Infrastructure OperatorAssignee: Omer Tuchfeld <otuchfel>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact: Derek <dcadzow>
Priority: medium    
Version: rhacm-2.6CC: cbynum, ccrum, mfilanov, trwest, vkolodny, yfirst
Target Milestone: ---Flags: cbynum: rhacm-2.6+
cbynum: rhacm-2.6.z+
Target Release: rhacm-2.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-06 22:30:54 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: 2065726    

Description Omer Tuchfeld 2022-03-18 12:36:27 UTC
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.

Comment 5 errata-xmlrpc 2022-09-06 22:30:54 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: Red Hat Advanced Cluster Management 2.6.0 security updates and bug fixes), 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:6370