Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-24695

Fix add-bundle.sh replacement chain logic for FBC catalog entries

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • ACM 2.15.0
    • Business Continuity
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • None

      The {{./build/add-bundle.sh }}script was creating incorrect replacement chains in FBC (File-Based Catalog) entries, where older versions were replacing newer versions instead of the proper direction (newer
      should replace older).

      What needs to be implemented:
      1. Replace the existing append-only logic with an extract-process-write approach
      2. Implement proper version ordering by sorting entries by name after adding new bundles
      3. Create correct replacement chains where newer versions replace older versions
      4. Handle "skips" field semantics correctly - entries that are skipped by other entries should not have a 'replaces' field
      5. Ensure the first entry in each channel has no 'replaces' field
      6. Maintain proper FBC catalog structure for operator lifecycle management

      Acceptance criteria:

      • Replacement chains flow from older to newer versions (newer replaces older)
      • Skipped entries have no 'replaces' field
      • First entry in each channel has no 'replaces' field
      • Script maintains backward compatibility with existing catalog structure

              rh-ee-iquwarah Ismail Ibrahim Quwarah
              rh-ee-iquwarah Ismail Ibrahim Quwarah
              Thuy Nguyen Thuy Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: