This is based on/copied from gatekeeper-operator-fbc
This step may not need to be re-done - was done with the oldest supported OCP at the time to generate the catalog-template - then the next step (Adding or removing OCP versions) can prune the older unsupported versions from older OCPs.
Use the build/fetch-catalog.sh script to pulling from the OCP vX.Y
index for the volsync-product operator package:
./build/fetch-catalog.sh X.Y volsync-product- Update konflux-release-data, adding or removing OCP versions as needed.
- If versions should be updated for an incoming or outgoing OCP version, update the drop-versions.json map, which maps an OCP version to the version of the operator that should be dropped from the catalog.
- Merge the PRs from Konflux corresponding to the addition or removal of the application. For additions, run the pipeline-patch.sh script to patch the incoming pipeline with relevant updates.
-
Run the
add-bundle.shscript to add catalog entries intocatalog-template.yamlgiving the Konflux bundle image as an argument. The image can be found on the Konflux console in the Application in the Components tab. For example:./build/add-bundle.sh quay.io/redhat-user-workloads/volsync-tenant/volsync-bundle-X-Y@sha256:<sha>
-
Pruning previous catalogs without compelling reason is not allowed since it's already been deployed to customers. However, we can prune catalogs for unreleased versions of OCP.
Update the OCP version <-> operator version map, drop-versions.json, with the version of the operator to drop for any unreleased OCP version.
-
Run the build/generate-catalog-template.sh to regenerate the catalog template files:
./build/generate-catalog-template.sh
-
Run the render-catalog.sh script to re-render the catalog for the template files:
./build/render-catalog.sh
NOTE: The catalog rendering replaces the Konflux image registry with the production Red Hat registry so the
opmCLI can no longer reach it if you try to generate the catalog again before the image's release. In this case, you need to revert the bundle reference to the Konflux one for the script to complete.
A catalog source can be created pointing to the FBC image as follows:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: fbc-test-catalogsource
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/redhat-user-workloads/<tenant>-tenant/<fbc-image>@sha256:<digest>
displayName: Konflux FBC test CatalogSource
publisher: Red Hat