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

Improve FBC repository scripts - sorting and error handling

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

      Multiple issues were identified in FBC repository scripts that needed improvement for better maintainability, error handling, and code review readability.

        What needs to be implemented:
        1. Fix generate-catalog-template.sh to always remove 'replaces' field from first entry regardless of entry count
        2. Add proper error handling in generate-catalog-template.sh when skopeo inspect fails
        3. Improve catalog-template.yaml organization by adding sorting in add-bundle.sh
        4. Sort relatedImages in bundle files for consistency in render-catalog.sh

        Acceptance criteria:
        - First entry in every channel has no 'replaces' field regardless of total entry count
        - Script exits gracefully with helpful message when skopeo inspect fails
        - Catalog entries are organized consistently for better code review readability
        - Bundle files have sorted relatedImages for consistency

              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: