fix: use dynamic registry mirror based on fbc_dir input#329
Conversation
The registry mirror in create-release workflow was hardcoded for rhtas-operator-bundle, causing opm render to fail for policy-controller-operator and model-validation-operator whose bundle images are on quay.io until the product is released. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PR Summary by QodoFix create-release registry mirror by deriving bundle repo from fbc_dir Description
Diagram
High-Level Assessment
Files changed (1)
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
Code Review by Qodo
1. Mirror ignores bundle_image
|
When an operator doesn't have graph.yaml or catalog.json for a given OCP version, create a minimal seed graph.yaml with just the olm.package entry and an empty catalog.json so the utility scripts can proceed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
create-releaseworkflow was hardcoded forrhtas-operator-bundle, causingopm renderto fail forpolicy-controller-operatorandmodel-validation-operatorwhose bundle images are onquay.iountil the product is released onregistry.redhat.io. Now derivesBUNDLE_REPOfrom thefbc_dirworkflow input so the mirror works for any operator.policy-controller-operatoronv4.22) doesn't havegraph.yamlorcatalog.json, the utility scripts fail. Now auto-creates a minimal seedgraph.yaml(with just theolm.packageentry) and an emptycatalog.jsonso the scripts can proceed normally.rhtas-operator-bundle-v1-3mirror entry.Test plan
policy-controller-operatoronv4.22(missing bothgraph.yamlandcatalog/) — all passed, correct catalog renderedcreate-releaseworkflow withfbc_dir=policy-controller-operatoron a version missinggraph.yamlcreate-releaseworkflow withfbc_dir=rhtas-operatorand verify it still workscreate-releaseworkflow withfbc_dir=model-validation-operatorand verify it works🤖 Generated with Claude Code