Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
bba6907
feat: Support autoUpdate in product image selection
Techassi Jun 18, 2026
2dc254d
chore(operator): Fix clippy::collapsible-else-if lint
Techassi Jun 18, 2026
e9d1bba
chore(operator): Fix rustfmt error
Techassi Jun 18, 2026
83531c7
refactor: Rename CRD field, improve image selection
Techassi Jun 19, 2026
50ded42
chore(operator): Make clippy happy
Techassi Jun 19, 2026
eee5f95
Merge branch 'main' into feat/product-image-selection-auto-update
Techassi Jun 30, 2026
c0c9031
refactor(operator): Streamline floating version handling
Techassi Jun 30, 2026
f760b36
doc(operator): Update stackableVersion doc comment
Techassi Jun 30, 2026
7a02d0f
chore: Apply suggestion
Techassi Jun 30, 2026
e730445
chore: Merge branch 'main' into feat/product-image-selection-auto-update
Techassi Aug 13, 2026
35ff98b
chore: Merge branch 'main' into feat/product-image-selection-auto-update
Techassi Aug 24, 2026
2bf41e5
chore: Merge branch 'main' into feat/product-image-selection-auto-update
Techassi Sep 2, 2026
ec44fd9
chore(operator): Change to stackableVersionPolicy
Techassi Sep 2, 2026
16c01bb
chore(operator): Use correct prek hook name
Techassi Sep 2, 2026
f6d62cc
chore: Merge branch 'main' into feat/product-image-selection-auto-update
Techassi Sep 9, 2026
e01a045
chore: Apply suggestion
Techassi Sep 9, 2026
87100f7
chore(operator): Update doc comment on stackable_version
Techassi Sep 9, 2026
e903648
fix(shared): Include pre-release info in floating version
Techassi Sep 9, 2026
9292a88
chore(operator): Add updated comment for PullPolicy
Techassi Sep 9, 2026
728377c
chore(operator): Don't use raw string to be able to use string contin…
Techassi Sep 9, 2026
61671b6
fix(operator): Use correct pullPolicy for :latest tag for custom image
Techassi Sep 9, 2026
fdd1b82
chore(operator): Rename StackableVersionStrategy to StackableVersionP…
Techassi Sep 9, 2026
7f6dc95
chore(operator): Add dev comment about Policy vs Strategy
Techassi Sep 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/stackable-operator/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
files: .*\.rs$|Cargo\.toml

- id: cargo-test-all-features
name: cargo-test-no-default-features
name: cargo-test-all-default-features
language: system
entry: cargo test --all-features --package stackable-operator
stages: [pre-commit, pre-merge-commit]
Expand Down
2 changes: 1 addition & 1 deletion crates/stackable-operator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ kube.workspace = true
rand.workspace = true
regex.workspace = true
schemars.workspace = true
semver.workspace = true
semver = { workspace = true, features = ["serde"] }
serde_json.workspace = true
serde_yaml.workspace = true
serde.workspace = true
Expand Down
42 changes: 39 additions & 3 deletions crates/stackable-operator/crds/DummyCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1855,12 +1855,13 @@ spec:
description: Version of the product, e.g. `1.4.1`.
type: string
pullPolicy:
default: Always
description: '[Pull policy](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy) used when pulling the image.'
enum:
- IfNotPresent
- Always
- Never
- null
nullable: true
type: string
pullSecrets:
description: '[Image pull secrets](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod) to pull images from a private registry.'
Expand All @@ -1886,12 +1887,47 @@ spec:
type: string
stackableVersion:
description: |-
Stackable version of the product, e.g. `23.4`, `23.4.1` or `0.0.0-dev`.
Stackable version of the product, e.g. `26.7.0` or `0.0.0-dev`.

If not specified, the operator will use its own version, e.g. `23.4.1`. When using a nightly
If not specified, the operator will use its own version, e.g. `26.7.1`. When using a nightly
Comment thread
sbernauer marked this conversation as resolved.
operator or a PR version, it will use the nightly `0.0.0-dev` image.

If this is used in combination with `stackableVersionPolicy: LatestPatch`, the correct
floating tag is computed automatically, e.g. `26.7.0` becomes `26.7` for the product image.
nullable: true
type: string
stackableVersionPolicy:
default: Exact
description: |-
Configure the Stackable version policy. Defaults to `Exact`.

Currently, two variants are supported:

- `Exact`, which uses the exact, fully-qualified, canonical version of a product image.
- `LatestPatch`, referencing a floating tag which always points to the latest patch version
in the current release line. The current release line is either automatically derived by
the operator based on its own version, or can be overridden with `stackableVersion`.

A potential newer image is only pulled when Pods are rotated or their containers are
restarted. Pods are NOT rotated and containers are NOT restarted automatically when a new
image is available. This behaviour makes this a passive update mechanism, rather than an
active one.

It should be noted that when this field is set to `LatestPatch`, the operator automatically
uses `Always` as the pull policy for product images. If set to `Exact`, `IfNotPresent` is
used. Explicitly setting `pullPolicy` takes precedence.

### Examples

- The `stackableVersion` field is not set, the operator falls back to its own version, eg.
26.7.0. If this field is set to `LatestPatch`, the `26.7` floating tag will be used for
product images, else, `26.7.0` will be used.
- The `stackableVersion` field is set to `26.3.0`. If this field is set to `LatestPatch`,
the `26.3` floating tag will be used for product images, else, `26.3.0` will be used.
enum:
- Exact
- LatestPatch
type: string
type: object
secretClassVolume:
properties:
Expand Down
Loading