Skip to content

Commit 20b6555

Browse files
authored
fix: Use Kafka 4.2.0 for Kubernetes example (a2aproject#718)
Partially revert fb06d43 / a2aproject#710, since now we can use https://strimzi.io/install/latest?namespace=kafka again
1 parent d7227f7 commit 20b6555

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/cloud-deployment-example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Install Kind
2929
run: |
30-
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.30.0/kind-linux-amd64
30+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
3131
chmod +x ./kind
3232
sudo mv ./kind /usr/local/bin/kind
3333
kind version

examples/cloud-deployment/k8s/02-kafka.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ metadata:
3333
strimzi.io/kraft: enabled
3434
spec:
3535
kafka:
36-
version: 4.0.0
37-
metadataVersion: 4.0-IV0
36+
version: 4.2.0
37+
metadataVersion: 4.2-IV0
3838
listeners:
3939
- name: plain
4040
port: 9092

examples/cloud-deployment/scripts/deploy.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,13 @@ if ! kubectl get namespace kafka > /dev/null 2>&1; then
177177
fi
178178

179179
if ! kubectl get crd kafkas.kafka.strimzi.io > /dev/null 2>&1; then
180-
echo "Installing Strimzi operator... at https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.50.1/strimzi-cluster-operator-0.50.1.yaml"
181-
curl -sL 'https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.50.1/strimzi-cluster-operator-0.50.1.yaml' \
182-
| sed 's/namespace: .*/namespace: kafka/' \
183-
| kubectl apply -f - -n kafka
184-
# echo "Installing Strimzi operator..."
185-
# kubectl create -f 'https://strimzi.io/install/latest?namespace=kafka' -n kafka
180+
# Keep this around in case we need to hardcode operator version again in the future
181+
# echo "Installing Strimzi operator... at https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.50.1/strimzi-cluster-operator-0.50.1.yaml"
182+
# curl -sL 'https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.50.1/strimzi-cluster-operator-0.50.1.yaml' \
183+
# | sed 's/namespace: .*/namespace: kafka/' \
184+
# | kubectl apply -f - -n kafka
185+
echo "Installing Strimzi operator..."
186+
kubectl create -f 'https://strimzi.io/install/latest?namespace=kafka' -n kafka
186187

187188
echo "Waiting for Strimzi operator deployment to be created..."
188189
for i in {1..30}; do

0 commit comments

Comments
 (0)