Skip to content

Commit 0fcfbfa

Browse files
Removed tools image for init and get-svc container (#527)
# Description *Please add a description here. This will become the commit message of the merge request later.* Co-authored-by: Malte Sander <malte.sander.it@gmail.com>
1 parent 9f72a53 commit 0fcfbfa

File tree

12 files changed

+37
-36
lines changed

12 files changed

+37
-36
lines changed

.readme/partials/main.md.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ metadata:
2929
spec:
3030
image:
3131
productVersion: 3.3.1
32-
stackableVersion: 0.2.0
32+
stackableVersion: 0.3.0
3333
zookeeperConfigMapName: simple-kafka-znode
3434
config:
3535
tls: null

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ All notable changes to this project will be documented in this file.
1010
- operator-rs: 0.26.0 -> 0.27.1 ([#519]).
1111
- Don't run init container as root and avoid chmod and chowning ([#524]).
1212
- [BREAKING] Use Product image selection instead of version. `spec.version` has been replaced by `spec.image` ([#482]).
13+
- [BREAKING]: Removed tools image for init and get-svc container and replaced with Kafka product image. This means the latest stackable version has to be used in the product image selection ([#527])
1314

1415
[#482]: https://github.com/stackabletech/kafka-operator/pull/482
1516
[#513]: https://github.com/stackabletech/kafka-operator/pull/513
1617
[#519]: https://github.com/stackabletech/kafka-operator/pull/519
1718
[#524]: https://github.com/stackabletech/kafka-operator/pull/524
19+
[#527]: https://github.com/stackabletech/kafka-operator/pull/527
1820

1921
## [0.8.0] - 2022-11-07
2022

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ metadata:
4949
spec:
5050
image:
5151
productVersion: 3.3.1
52-
stackableVersion: 0.2.0
52+
stackableVersion: 0.3.0
5353
zookeeperConfigMapName: simple-kafka-znode
5454
config:
5555
tls: null

docs/modules/ROOT/pages/config_properties.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
spec:
1212
image:
1313
productVersion: 3.3.1
14-
stackableVersion: 0.2.0
14+
stackableVersion: 0.3.0
1515
zookeeperConfigMapName: simple-kafka-znode
1616
brokers:
1717
roleGroups:

docs/modules/ROOT/pages/usage.adoc

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If you are not installing the operator using Helm then after installation the CR
44

55
kubectl apply -f /etc/stackable/kafka-operator/crd/kafkacluster.crd.yaml
66

7-
To create an Apache Kafka (v3.2.0) cluster named `simple-kafka` assuming that you already have a Zookeeper cluster named `simple-zk`:
7+
To create an Apache Kafka cluster named `simple-kafka` assuming that you already have a Zookeeper cluster named `simple-zk`:
88

99
[source,yaml]
1010
----
@@ -24,8 +24,8 @@ metadata:
2424
name: simple-kafka
2525
spec:
2626
image:
27-
productVersion: 3.2.0
28-
stackableVersion: 0.2.0
27+
productVersion: 3.3.1
28+
stackableVersion: 0.3.0
2929
zookeeperConfigMapName: simple-kafka-znode
3030
brokers:
3131
roleGroups:
@@ -43,8 +43,8 @@ metadata:
4343
name: simple-kafka
4444
spec:
4545
image:
46-
productVersion: 3.2.0
47-
stackableVersion: 0.2.0
46+
productVersion: 3.3.1
47+
stackableVersion: 0.3.0
4848
zookeeperConfigMapName: simple-kafka-znode
4949
opa:
5050
configMapName: simple-opa
@@ -66,8 +66,8 @@ metadata:
6666
name: simple-kafka
6767
spec:
6868
image:
69-
productVersion: 3.2.0
70-
stackableVersion: 0.2.0
69+
productVersion: 3.3.1
70+
stackableVersion: 0.3.0
7171
zookeeperConfigMapName: simple-kafka-znode
7272
opa:
7373
configMapName: simple-opa
@@ -103,8 +103,8 @@ metadata:
103103
name: simple-kafka
104104
spec:
105105
image:
106-
productVersion: 3.2.0
107-
stackableVersion: 0.2.0
106+
productVersion: 3.3.1
107+
stackableVersion: 0.3.0
108108
zookeeperConfigMapName: simple-kafka-znode
109109
log4j: |-
110110
log4j.rootLogger=INFO, stdout, kafkaAppender
@@ -137,8 +137,8 @@ metadata:
137137
name: simple-kafka
138138
spec:
139139
image:
140-
productVersion: 3.2.0
141-
stackableVersion: 0.2.0
140+
productVersion: 3.3.1
141+
stackableVersion: 0.3.0
142142
zookeeperConfigMapName: simple-kafka-znode
143143
config:
144144
tls:
@@ -209,8 +209,8 @@ metadata:
209209
name: simple-kafka
210210
spec:
211211
image:
212-
productVersion: 3.2.0
213-
stackableVersion: 0.2.0
212+
productVersion: 3.3.1
213+
stackableVersion: 0.3.0
214214
zookeeperConfigMapName: simple-kafka-znode
215215
config:
216216
tls:

docs/modules/getting_started/examples/code/kafka.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
spec:
77
image:
88
productVersion: 3.3.1
9-
stackableVersion: 0.2.0
9+
stackableVersion: 0.3.0
1010
zookeeperConfigMapName: simple-kafka-znode
1111
config:
1212
tls: null

examples/logging/simple-kafka-cluster-opa-log4j.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ metadata:
5959
spec:
6060
image:
6161
productVersion: 3.3.1
62-
stackableVersion: 0.1.0
62+
stackableVersion: 0.3.0
6363
zookeeperConfigMapName: simple-kafka-znode
6464
opa:
6565
configMapName: simple-opa

examples/opa/simple-kafka-cluster-opa-allow-all.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ metadata:
5959
spec:
6060
image:
6161
productVersion: 3.3.1
62-
stackableVersion: 0.1.0
62+
stackableVersion: 0.3.0
6363
zookeeperConfigMapName: simple-kafka-znode
6464
opa:
6565
configMapName: simple-opa

examples/tls/simple-kafka-cluster-tls.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ metadata:
6666
spec:
6767
image:
6868
productVersion: 3.3.1
69-
stackableVersion: 0.1.0
69+
stackableVersion: 0.3.0
7070
zookeeperConfigMapName: simple-kafka-znode
7171
config:
7272
tls:

rust/operator/src/command.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn get_svc_container_cmd_args(kafka: &KafkaCluster) -> String {
3636
}
3737

3838
pub fn kcat_container_cmd_args(kafka: &KafkaCluster) -> Vec<String> {
39-
let mut args = vec!["kcat".to_string()];
39+
let mut args = vec!["/stackable/kcat".to_string()];
4040

4141
if kafka.client_authentication_class().is_some() {
4242
args.push("-b".to_string());

rust/operator/src/kafka_controller.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ fn build_broker_rolegroup_statefulset(
663663
.context(InvalidContainerNameSnafu {
664664
name: "get-svc".to_string(),
665665
})?
666-
.image("docker.stackable.tech/stackable/tools:0.2.0-stackable0.4.0")
666+
.image_from_product_image(resolved_product_image)
667667
.command(vec!["bash".to_string()])
668668
.args(vec![
669669
"-euo".to_string(),
@@ -686,7 +686,7 @@ fn build_broker_rolegroup_statefulset(
686686
.build();
687687

688688
cb_prepare
689-
.image("docker.stackable.tech/stackable/tools:0.2.0-stackable0.4.0")
689+
.image_from_product_image(resolved_product_image)
690690
.command(vec![
691691
"/bin/bash".to_string(),
692692
"-euo".to_string(),
@@ -814,9 +814,9 @@ fn build_broker_rolegroup_statefulset(
814814

815815
// Use kcat sidecar for probing container status rather than the official Kafka tools, since they incur a lot of
816816
// unacceptable perf overhead
817-
let mut container_kcat_prober = cb_kcat_prober
818-
.image("edenhill/kcat:1.7.0")
819-
.command(vec!["sh".to_string()])
817+
let container_kcat_prober = cb_kcat_prober
818+
.image_from_product_image(resolved_product_image)
819+
.command(vec!["sleep".to_string(), "infinity".to_string()])
820820
// Only allow the global load balancing service to send traffic to pods that are members of the quorum
821821
// This also acts as a hint to the StatefulSet controller to wait for each pod to enter quorum before taking down the next
822822
.readiness_probe(Probe {
@@ -829,7 +829,6 @@ fn build_broker_rolegroup_statefulset(
829829
..Probe::default()
830830
})
831831
.build();
832-
container_kcat_prober.stdin = Some(true);
833832
let mut pod_template = pod_builder
834833
.metadata_builder(|m| {
835834
m.with_recommended_labels(build_recommended_labels(

tests/test-definition.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
dimensions:
33
- name: kafka
44
values:
5-
- 2.8.1-stackable0.6.0
6-
- 3.1.0-stackable0.6.0
7-
- 3.2.0-stackable0.2.0
8-
- 3.3.1-stackable0.2.0
5+
- 2.8.1-stackable0.7.0
6+
- 3.1.0-stackable0.7.0
7+
- 3.2.0-stackable0.3.0
8+
- 3.3.1-stackable0.3.0
99
- name: kafka-latest
1010
values:
11-
- 3.3.1-stackable0.2.0
11+
- 3.3.1-stackable0.3.0
1212
- name: zookeeper
1313
values:
1414
- 3.6.3-stackable0.8.0
@@ -19,12 +19,12 @@ dimensions:
1919
- 3.8.0-stackable0.8.0
2020
- name: upgrade_old
2121
values:
22-
- 2.8.1-stackable0.6.0
23-
- 3.1.0-stackable0.6.0
24-
- 3.2.0-stackable0.2.0
22+
- 2.8.1-stackable0.7.0
23+
- 3.1.0-stackable0.7.0
24+
- 3.2.0-stackable0.3.0
2525
- name: upgrade_new
2626
values:
27-
- 3.3.1-stackable0.2.0
27+
- 3.3.1-stackable0.3.0
2828
- name: use-client-tls
2929
values:
3030
- "true"

0 commit comments

Comments
 (0)