Skip to content

Commit

Permalink
chore: add oci references, merge templating changes (#810)
Browse files Browse the repository at this point in the history
* replace docker references with oci

* bump operator-rs to 0.85

* changelog

---------

Co-authored-by: Xenia <[email protected]>
  • Loading branch information
adwk67 and xeniape authored Jan 29, 2025
1 parent d227578 commit 91d0a20
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 32 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ All notable changes to this project will be documented in this file.
- Run a `containerdebug` process in the background of each Kafka container to collect debugging information ([#803]).
- Aggregate emitted Kubernetes events on the CustomResources ([#809]).

### Changed

- Default to OCI for image metadata and product image selection ([#810]).

[#796]: https://github.com/stackabletech/kafka-operator/pull/796
[#803]: https://github.com/stackabletech/kafka-operator/pull/803
[#809]: https://github.com/stackabletech/kafka-operator/pull/809
[#810]: https://github.com/stackabletech/kafka-operator/pull/810
[#813]: https://github.com/stackabletech/kafka-operator/pull/813

## [24.11.1] - 2025-01-10
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.nix

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
snafu = "0.8"
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.84.1" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.85.0" }
strum = { version = "0.26", features = ["derive"] }
tokio = { version = "1.40", features = ["full"] }
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions crate-hashes.json

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

4 changes: 2 additions & 2 deletions deploy/helm/kafka-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ spec:
Consult the [Product image selection documentation](https://docs.stackable.tech/home/nightly/concepts/product_image_selection) for details.
properties:
custom:
description: Overwrite the docker image. Specify the full docker image name, e.g. `docker.stackable.tech/stackable/superset:1.4.1-stackable2.1.0`
description: Overwrite the docker image. Specify the full docker image name, e.g. `oci.stackable.tech/sdp/superset:1.4.1-stackable2.1.0`
type: string
productVersion:
description: Version of the product, e.g. `1.4.1`.
Expand All @@ -690,7 +690,7 @@ spec:
nullable: true
type: array
repo:
description: Name of the docker repo, e.g. `docker.stackable.tech/stackable`
description: Name of the docker repo, e.g. `oci.stackable.tech/sdp`
nullable: true
type: string
stackableVersion:
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/kafka-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Default values for kafka-operator.
---
image:
repository: docker.stackable.tech/stackable/kafka-operator
repository: oci.stackable.tech/sdp/kafka-operator
pullPolicy: IfNotPresent
pullSecrets: []

Expand Down
6 changes: 3 additions & 3 deletions docs/modules/kafka/pages/reference/environment-variables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ docker run \
--env KUBECONFIG=/home/stackable/.kube/config \
--env KUBERNETES_CLUSTER_DOMAIN=mycluster.local \
--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \
docker.stackable.tech/stackable/kafka-operator:latest
oci.stackable.tech/sdp/kafka-operator:0.0.0-dev
----

== PRODUCT_CONFIG
Expand All @@ -56,7 +56,7 @@ docker run \
--env KUBECONFIG=/home/stackable/.kube/config \
--env PRODUCT_CONFIG=/my/product/config.yaml \
--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \
docker.stackable.tech/stackable/kafka-operator:latest
oci.stackable.tech/sdp/kafka-operator:0.0.0-dev
----

== WATCH_NAMESPACE
Expand Down Expand Up @@ -85,5 +85,5 @@ docker run \
--env KUBECONFIG=/home/stackable/.kube/config \
--env WATCH_NAMESPACE=test \
--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \
docker.stackable.tech/stackable/kafka-operator:latest
oci.stackable.tech/sdp/kafka-operator:0.0.0-dev
----
8 changes: 4 additions & 4 deletions tests/templates/kuttl/kerberos/01-install-krb5-kdc.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: test-sa
initContainers:
- name: init
image: docker.stackable.tech/stackable/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
image: oci.stackable.tech/sdp/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
args:
- sh
- -euo
Expand All @@ -36,7 +36,7 @@ spec:
name: data
containers:
- name: kdc
image: docker.stackable.tech/stackable/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
image: oci.stackable.tech/sdp/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
args:
- krb5kdc
- -n
Expand All @@ -54,7 +54,7 @@ spec:
runAsUser: 0
{% endif %}
- name: kadmind
image: docker.stackable.tech/stackable/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
image: oci.stackable.tech/sdp/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
args:
- kadmind
- -nofork
Expand All @@ -72,7 +72,7 @@ spec:
runAsUser: 0
{% endif %}
- name: client
image: docker.stackable.tech/stackable/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
image: oci.stackable.tech/sdp/krb5:{{ test_scenario['values']['krb5'] }}-stackable0.0.0-dev
tty: true
stdin: true
env:
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/kuttl/kerberos/30-access-kafka.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
serviceAccountName: test-sa
containers:
- name: access-kafka
image: docker.stackable.tech/stackable/kafka:{{ test_scenario['values']['kafka'] }}-stackable0.0.0-dev
image: oci.stackable.tech/sdp/kafka:{{ test_scenario['values']['kafka'] }}-stackable0.0.0-dev
command:
- /bin/bash
- /tmp/script/script.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ spec:
spec:
containers:
- name: kafka-test-runner
image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
stdin: true
tty: true
2 changes: 1 addition & 1 deletion tests/templates/kuttl/smoke/40-install-test-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: webhdfs
image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
stdin: true
tty: true
resources:
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/kuttl/upgrade/03-write-data.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{% endif %}
containers:
- name: write-data
image: docker.stackable.tech/stackable/kafka-testing-tools:1.0.0-stackable0.0.0-dev
image: oci.stackable.tech/sdp/kafka-testing-tools:1.0.0-stackable0.0.0-dev
command: [sh, -euo, pipefail, -c]
args:
- |
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/kuttl/upgrade/05-read-data.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{% endif %}
containers:
- name: read-data
image: docker.stackable.tech/stackable/kafka-testing-tools:1.0.0-stackable0.0.0-dev
image: oci.stackable.tech/sdp/kafka-testing-tools:1.0.0-stackable0.0.0-dev
command: [sh, -euo, pipefail, -c]
args:
- |
Expand Down
4 changes: 2 additions & 2 deletions tests/test-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ dimensions:
- 3.8.0
# Alternatively, if you want to use a custom image, append a comma and the full image name to the product version
# as in the example below.
# - 3.8.0,docker.stackable.tech/stackable/kafka:3.8.0-stackable0.0.0-dev
# - 3.8.0,oci.stackable.tech/sdp/kafka:3.8.0-stackable0.0.0-dev
- name: kafka-latest
values:
- 3.7.1 # Using LTS version here
# Alternatively, if you want to use a custom image, append a comma and the full image name to the product version
# as in the example below.
# - 3.7.1,docker.stackable.tech/stackable/kafka:3.7.1-stackable0.0.0-dev
# - 3.7.1,oci.stackable.tech/sdp/kafka:3.7.1-stackable0.0.0-dev
- name: zookeeper
values:
- 3.9.2
Expand Down

0 comments on commit 91d0a20

Please sign in to comment.