Skip to content

Commit

Permalink
openshift disconnected: patch itms-oc-mirror.yaml for prega
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 23, 2025
1 parent 7a98d6e commit 215e1e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kvirt/cluster/openshift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ def patch_oc_mirror(clusterdir):
continue
entries = []
for document in safe_load_all(open(_fic)):
if 'release' not in document['metadata']['name']:
entries.append(document)
if 'release' in document['metadata']['name']:
continue
if os.path.basename(_fic) == 'idms-oc-mirror.yaml':
document = json.loads(json.dumps(document).replace('quay.io/prega/test', 'registry.redhat.io'))
entries.append(document)
with open(_fic, 'w') as f:
safe_dump_all(entries, f, default_flow_style=False, encoding='utf-8', allow_unicode=True)

Expand Down

0 comments on commit 215e1e7

Please sign in to comment.