Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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: 2 additions & 2 deletions Cargo.lock

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

13 changes: 13 additions & 0 deletions crates/stackable-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Added

- BREAKING: Add CLI argument and env var to set the image repository used to construct final product
image names: `IMAGE_REPOSITORY` (`--image-repository`), eg. `oci.example.org/my/namespace` ([#1199]).

### Changed

- BREAKING: The product image selection mechanism via `ProductImage::resolve` now takes three
parameters instead of two. The new parameters are: `image_name`, `image_repository`, and
`operator_version` ([#1199]).

[#1199]: https://github.com/stackabletech/operator-rs/pull/1199

## [0.110.1] - 2026-04-16

### Added
Expand Down
17 changes: 12 additions & 5 deletions crates/stackable-operator/crds/DummyCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1781,8 +1781,9 @@ spec:
properties:
custom:
description: |-
Overwrite the docker image.
Specify the full docker image name, e.g. `oci.stackable.tech/sdp/superset:1.4.1-stackable2.1.0`
Provide a custom container image.

Specify the full container image name, e.g. `oci.example.tech/namespace/superset:1.4.1-my-tag`
type: string
productVersion:
description: Version of the product, e.g. `1.4.1`.
Expand All @@ -1809,14 +1810,20 @@ spec:
nullable: true
type: array
repo:
description: Name of the docker repo, e.g. `oci.stackable.tech/sdp`
description: |-
The repository on the container image registry where the container image is located, e.g.
`oci.example.com/namespace`.

If not specified, the operator will use the image registry provided via the operator
environment options.
nullable: true
type: string
stackableVersion:
description: |-
Stackable version of the product, e.g. `23.4`, `23.4.1` or `0.0.0-dev`.
If not specified, the operator will use its own version, e.g. `23.4.1`.
When using a nightly operator or a pr version, it will use the nightly `0.0.0-dev` image.

If not specified, the operator will use its own version, e.g. `23.4.1`. When using a nightly
operator or a PR version, it will use the nightly `0.0.0-dev` image.
nullable: true
type: string
type: object
Expand Down
10 changes: 10 additions & 0 deletions crates/stackable-operator/src/cli/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ pub struct OperatorEnvironmentOptions {
/// something like `<product>-operator`.
#[arg(long, env)]
pub operator_service_name: String,

/// The image repository which should be used when resolving images provisioned by the operator.
///
/// This argument expects a valid registry host and path. Valid values include:
/// `oci.example.org/my/namespace` or `quay.io/organization`
///
/// Note that when running the operator on Kubernetes we recommend to provide this value via
/// the deployment mechanism, like Helm.
#[arg(long, env)]
pub image_repository: String,
}
Loading
Loading