Uploaded image for project: 'Red Hat Workload Availability'
  1. Red Hat Workload Availability
  2. RHWA-313

Create Catalogs with run-opm-command Task

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Low

      The current method of building the File-Based Catalog (FBC) using the generate-fbc.sh script should be replaced by a new task by Konflux run-opm-command task within the fbc-builder Konflux pipeline.

      This new task simplifies the process by building the catalog.json directly from the catalog-template.yaml during the pipeline run. This means the pre-generated catalogs directory is no longer needed and can be deleted. This change is recommended for better automation and maintenance.

      Key Points:

      • Action:

        • Create catalog-template.yamls per application/package/operator as follows
          opm alpha convert-template basic catalogs-rhwa-25-9/v420/catalog/self-node-remediation/catalog.yaml > catalog/4.21-0/snr-basic-catalog-template.json
        • Modify the template using Catalog Update Formulary logic (maybe inside a new script to simplify usage).
        • Avoid using generate-fbc.sh in favor of the run-opm-command task from the PipelineRun.
      • Result:

      Catalogs are built on-demand, and the catalogs directory will be removed.

      • Limitation:

      The task only handles one package at a time. If you have multiple packages, you'll need to run the task for each one. 
      This is a big problem for using this initiative. We can probably use Matrix or run it multiple times...

      Definition of Done:

      1. New catalog templates are created
      2. The FBC build succeeds with the new run-opm-command task.
      3. The generate-fbc.sh script and catalogs directory are removed.

      References

              oraz@redhat.com Or Raz
              rh-ee-slevi Shai Shimon Levi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: