Skip to content

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

Merged
Techassi merged 1 commit into
mainfrom
ci/template-change-operator-version-behaviour
Aug 16, 2026
Merged

ci(template): Change operator version behaviour#632
Techassi merged 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
@Techassi
Techassi added this pull request to the merge queue Aug 16, 2026
@Techassi Techassi moved this from Development: In Review to Development: Done in Stackable Engineering Aug 16, 2026
Merged via the queue into main with commit a9901e5 Aug 16, 2026
2 checks passed
@Techassi
Techassi deleted the ci/template-change-operator-version-behaviour branch August 16, 2026 10:04
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants