Skip to content

feat(olm): add the bundle and catalog images to the artifacts repository - #191

Open
jlong49 wants to merge 3 commits into
mainfrom
dev/188
Open

feat(olm): add the bundle and catalog images to the artifacts repository#191
jlong49 wants to merge 3 commits into
mainfrom
dev/188

Conversation

@jlong49

@jlong49 jlong49 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The release workflow builds the production OLM bundle and catalog images. It attaches the CatalogSource manifest to the GitHub release, and then it writes the bundle to the artifacts repository.

The operator deployment gets a RELATED_IMAGE_SIDECAR variable. operator-sdk changes this variable to a digest, and it writes the image into the relatedImages field of the ClusterServiceVersion (CSV).

Four new patches correct the bundle. Two patches give the correct image to the CSV annotation and to the sample server, because both files had a fixed image that no registry holds. The third patch adds an olm.skipRange to the CSV, so a catalog that carries a single bundle can still offer an upgrade from any earlier release. The fourth patch removes the example secret, because OLM makes a secret for each secret in a bundle; the CSV description now lists the secrets a Server needs, since the bundle no longer ships them and the CRD requires the fields that name them.

Digest resolution covers every image in the CSV, the operand included, so the olm job depends on the core job as well. That job is skipped on a pull request that only touches the operator, so the bundle is built against mutable tags there rather than making every such pull request pay for a core build.

Assisted-by: Claude

The release workflow builds the production OLM bundle and catalog
images. It attaches the CatalogSource manifest to the GitHub release,
and then it writes the bundle to the artifacts repository.

The operator deployment gets a RELATED_IMAGE_SIDECAR variable.
operator-sdk changes this variable to a digest, and it writes the image
into the relatedImages field of the ClusterServiceVersion (CSV).

Four new patches correct the bundle. Two patches give the correct image
to the CSV annotation and to the sample server, because both files had
a fixed image that no registry holds. The third patch adds an
olm.skipRange to the CSV, so a catalog that carries a single bundle can
still offer an upgrade from any earlier release. The fourth patch
removes the example secret, because OLM makes a secret for each secret
in a bundle; the CSV description now lists the secrets a Server needs,
since the bundle no longer ships them and the CRD requires the fields
that name them.

Digest resolution covers every image in the CSV, the operand included,
so the olm job depends on the core job as well. That job is skipped on
a pull request that only touches the operator, so the bundle is built
against mutable tags there rather than making every such pull request
pay for a core build.

Assisted-by: Claude

Signed-off-by: John Long <john.long@enterprisedb.com>
Signed-off-by: John Long <john.long@enterprisedb.com>
Aspell splits the bare "operator-sdk" on the hyphen and rejects the
lowercase "sdk". The spellcheck pipeline ignores code spans, and every
other identifier in the paragraph is already backticked.

Assisted-by: Claude

Signed-off-by: John Long <john.long@enterprisedb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant