Skip to content

Name the OLM bundle directory without the v prefix - #761

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
wallrj-cyberark:olm-bundle-dir-without-v
Sep 30, 2026
Merged

cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
wallrj-cyberark:olm-bundle-dir-without-v

Conversation

@wallrj-cyberark

Copy link
Copy Markdown
Member

olm-publish copies the bundle to operators/<name>/$(VERSION), for example operators/vcp-operator/v1.10.0. Red Hat's certified-operators pipeline now rejects that. The directory name must equal the CSV version, which has no v prefix. This change strips the v from the directory name only. The branch name, commit message and PR title still use $(VERSION), as before.

This is a short-term fix. We still want to remove the OLM tooling in #653 once it is no longer used, as @inteon said in #653 (comment). Until then, every release published with this module fails Red Hat's static tests.

The failing check and how I tested the fix

Red Hat added the check check_operator_version_directory_name in January 2026 (redhat-openshift-ecosystem/operator-pipelines@6607b3f11). Its documentation says:

The bundle directory name should be in the format <operator_name>/<version> and the <version> part should match the version defined in the CSV file

redhat-openshift-ecosystem/certified-operators#9766 hit it:

Bundle directory name 'vcp-operator/v1.10.0' does not match the expected operator CSV version '1.10.0'

After I renamed the directory to 1.10.0 on that PR, the static tests passed and Red Hat merged and published it.

To test the change, I copied it into a project that vendors this module and ran make -n olm-publish VERSION=v1.10.0. The recipe now copies and adds operators/vcp-operator/1.10.0, while the branch and PR title stay v1.10.0:

git checkout -B v1.10.0 && mkdir -p operators/vcp-operator && cp -r .../bundle-v1.10.0 operators/vcp-operator/1.10.0 && git add operators/vcp-operator/1.10.0 && ...
gh pr create --repo redhat-openshift-ecosystem/certified-operators --head jetstack:v1.10.0 --title "operator vcp-operator (v1.10.0)" ...

[with Claude]

Red Hat's operator pipeline now rejects a bundle whose directory name
differs from the CSV version, e.g. operators/foo/v1.2.3 for version 1.2.3.

Signed-off-by: Richard Wall <richard.wall@cyberark.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@cert-manager-prow cert-manager-prow Bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 29, 2026

@inteon inteon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 30, 2026
@inteon

inteon commented Sep 30, 2026

Copy link
Copy Markdown
Member

/approve
/lgtm

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow
cert-manager-prow Bot merged commit 0c8ca42 into cert-manager:main Sep 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants