Revert catalog name to redhat-operator-index for 0.1.0 compatibility#509
Conversation
Changes mirror_rh_operator_catalog from "mirror-redhat-operators" back to "redhat-operator-index" to maintain backward compatibility with 0.1.0 deployments and eliminate the need for default operator migrations. Background: Commit c973e73 (62 commits after 0.1.0) renamed the catalog from cs-redhat-operator-index-v4-20 to cs-mirror-redhat-operators-v4-20. This cosmetic change broke upgrades from 0.1.0, as existing operator subscriptions reference the old name. Reverting the rename is simpler than creating a migration for all default operators. Impact: - Default operators use cs-redhat-operator-index-v4-20 (matches 0.1.0) - Foundation plugins use cs-redhat-operator-index-<plugin>-v4-20 (e.g., cs-redhat-operator-index-odf-v4-20) - Foundation plugin migrations continue to work correctly - No migration needed for default operators - Seamless upgrades from 0.1.0 to 0.1.1+ Changes: - defaults/catalogs.yaml: Change mirror_rh_operator_catalog variable - operators/advanced-cluster-management/configure_mch.yaml: Update MCE source - docs/UPGRADE.md: Update catalog name examples - playbooks/tasks/migrations/*.yaml: Update comments with correct names - src/enclave/tools/node_image_digests.py: Update catalog filter - src/tests/test_node_image_digests.py: Update test fixture Assisted-by: Claude Code <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (8)
WalkthroughAll references to the ChangesCatalog Source Name Rename:
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 10 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Can we please request this PR to get reviewed/merged today? |
|
@maorfr it was |
PR #509 changed mirror_rh_operator_catalog from "mirror-redhat-operators" to "redhat-operator-index" which fixed management cluster compatibility but broke spoke cluster upgrades from 0.1.0. In 0.1.0, spoke clusters had a CatalogSource named "mirror-redhat-operators" (see https://github.com/rh-ecosystem-edge/enclave/blob/0.1.0/defaults/catalogs.yaml#L6). After the change in #509, the catalog source name changed to "redhat-operator-index", but existing subscriptions on spoke clusters still reference the old name, causing operator installation failures. This fix hardcodes the spoke cluster catalog source name to "mirror-redhat-operators" while keeping the image path dynamic. This maintains compatibility with 0.1.0 spoke clusters without affecting the management cluster fix from #509. Assisted-by: Claude Code <noreply@anthropic.com>
Summary
Reverts
mirror_rh_operator_catalogfrom"mirror-redhat-operators"to"redhat-operator-index"to maintain backward compatibility with 0.1.0 deployments and eliminate the need for default operator migrations.Problem
Commit c973e73 (62 commits after 0.1.0 release) renamed the core catalog from
cs-redhat-operator-index-v4-20tocs-mirror-redhat-operators-v4-20. This cosmetic change broke upgrades from 0.1.0 because:cs-redhat-operator-index-v4-20cs-mirror-redhat-operators-v4-20Solution
Revert the catalog name back to the original
redhat-operator-index. This is simpler than creating a migration for all default operators indefaults/operators.yaml.Changes
Variable Change
defaults/catalogs.yaml:mirror_rh_operator_catalog: "redhat-operator-index"Hardcoded References Updated
operators/advanced-cluster-management/configure_mch.yaml: MCE subscription sourcedocs/UPGRADE.md: Documentation examplesplaybooks/tasks/migrations/*.yaml: Comment examplessrc/enclave/tools/node_image_digests.py: Catalog image filtersrc/tests/test_node_image_digests.py: Test fixtureImpact
✅ Default operators: Use
cs-redhat-operator-index-v4-20(matches 0.1.0)✅ Foundation plugins: Use
cs-redhat-operator-index-<plugin>-v4-20(e.g.,cs-redhat-operator-index-odf-v4-20)✅ Foundation plugin migrations: Continue to work correctly (migrate FROM
cs-redhat-operator-index-v4-20TOcs-redhat-operator-index-<plugin>-v4-20)✅ No migration needed: Default operators work seamlessly across upgrades from 0.1.0
✅ Certified catalog unchanged:
mirror_certified_rh_operator_catalogremains"mirror-certified-operators"(was never used as a core catalog, only plugin-specific)Testing
mirror-redhat-operatorsupdatedRelated
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation
Tests