Skip to content

ci(template): Change operator version behaviour - #632

Open
Techassi wants to merge 1 commit into
mainfrom
ci/template-change-operator-version-behaviour
Open

ci(template): Change operator version behaviour#632
Techassi wants to merge 1 commit into
mainfrom
ci/template-change-operator-version-behaviour

Conversation

@Techassi

Copy link
Copy Markdown
Member

Previously, we only used 0.0.0-prXXX for the image tag if the PR targeted the main branch. This could lead to surprising results, because some PRs might be raised against a different feature branch (potentially part of a different PR). In these cases, the current version (most likely 0.0.0-dev) would be used and the -prXXX was appended to it, resulting in a surprising version tag 0.0.0-dev-prXXX.

To address this, we decided to only use the current version for PRs raised against release branches where this version scheme makes sense (that behaviour was also our intend when we initially wrote that script). For ANY other branch, we now always use 0.0.0-prXXX.

We could further improve the logic by checking if the current version differs from 0.0.0-dev and then use the version as is with a -prXXX suffix. If the version is 0.0.0-dev, we use the established 0.0.0-prXXX version.

Previously, we only used 0.0.0-prXXX for the image tag if the PR
targeted the main branch. This could lead to surprising results,
because some PRs might be raised against a different feature
branch (potentially part of a different PR). In these cases, the
current version (most likely 0.0.0-dev) would be used and the
-prXXX was appended to it, resulting in a surprising version tag
0.0.0-dev-prXXX.

To address this, we decided to only use the current version for
PRs raised against release branches where this version scheme makes
sense (that behaviour was also our intend when we initially wrote
that script). For ANY other branch, we now always use 0.0.0-prXXX.

We could further improve the logic by checking if the current
version differs from 0.0.0-dev and then use the version as is
with a -prXXX suffix. If the version is 0.0.0-dev, we use the
established 0.0.0-prXXX version.
@Techassi Techassi self-assigned this Aug 14, 2026
@Techassi Techassi moved this to Development: Waiting for Review in Stackable Engineering Aug 14, 2026

@NickLarsenNZ NickLarsenNZ 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

@NickLarsenNZ NickLarsenNZ moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

2 participants