Skip to content

Commit 40329aa

Browse files
authored
chore: add kafka 3.3.2 (#2434)
- add version number constant - replace 3.3.1 with 3.3.2 in Dockerfile and FVT
1 parent 0b15695 commit 40329aa

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.github/workflows/fvt.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
go-version: [1.19.x]
16-
kafka-version: [2.8.2, 3.1.2, 3.2.3, 3.3.1]
16+
kafka-version: [2.8.2, 3.1.2, 3.2.3, 3.3.2]
1717
env:
1818
DEBUG: true
1919
GOFLAGS: -trimpath

Dockerfile.kafka

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ARG KAFKA_MIRROR="https://s3-us-west-2.amazonaws.com/kafka-packages"
2020
RUN mkdir -p "/opt/kafka-2.8.2" && chmod a+rw /opt/kafka-2.8.2 && curl -s "$KAFKA_MIRROR/kafka_2.12-2.8.2.tgz" | tar xz --strip-components=1 -C "/opt/kafka-2.8.2"
2121
RUN mkdir -p "/opt/kafka-3.1.2" && chmod a+rw /opt/kafka-3.1.2 && curl -s "$KAFKA_MIRROR/kafka_2.12-3.1.2.tgz" | tar xz --strip-components=1 -C "/opt/kafka-3.1.2"
2222
RUN mkdir -p "/opt/kafka-3.2.3" && chmod a+rw /opt/kafka-3.2.3 && curl -s "$KAFKA_MIRROR/kafka_2.12-3.2.3.tgz" | tar xz --strip-components=1 -C "/opt/kafka-3.2.3"
23-
RUN mkdir -p "/opt/kafka-3.3.1" && chmod a+rw /opt/kafka-3.3.1 && curl -s "$KAFKA_MIRROR/kafka_2.12-3.3.1.tgz" | tar xz --strip-components=1 -C "/opt/kafka-3.3.1"
23+
RUN mkdir -p "/opt/kafka-3.3.2" && chmod a+rw /opt/kafka-3.3.2 && curl -s "$KAFKA_MIRROR/kafka_2.12-3.3.2.tgz" | tar xz --strip-components=1 -C "/opt/kafka-3.3.2"
2424

2525
COPY entrypoint.sh /
2626

docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
dockerfile: Dockerfile.kafka
4141
restart: always
4242
environment:
43-
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.1}
43+
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.2}
4444
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
4545
KAFKA_CFG_LISTENERS: 'LISTENER_INTERNAL://:9091,LISTENER_LOCAL://:29091'
4646
KAFKA_CFG_ADVERTISED_LISTENERS: 'LISTENER_INTERNAL://kafka-1:9091,LISTENER_LOCAL://localhost:29091'
@@ -62,7 +62,7 @@ services:
6262
dockerfile: Dockerfile.kafka
6363
restart: always
6464
environment:
65-
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.1}
65+
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.2}
6666
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
6767
KAFKA_CFG_LISTENERS: 'LISTENER_INTERNAL://:9091,LISTENER_LOCAL://:29092'
6868
KAFKA_CFG_ADVERTISED_LISTENERS: 'LISTENER_INTERNAL://kafka-2:9091,LISTENER_LOCAL://localhost:29092'
@@ -84,7 +84,7 @@ services:
8484
dockerfile: Dockerfile.kafka
8585
restart: always
8686
environment:
87-
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.1}
87+
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.2}
8888
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
8989
KAFKA_CFG_LISTENERS: 'LISTENER_INTERNAL://:9091,LISTENER_LOCAL://:29093'
9090
KAFKA_CFG_ADVERTISED_LISTENERS: 'LISTENER_INTERNAL://kafka-3:9091,LISTENER_LOCAL://localhost:29093'
@@ -106,7 +106,7 @@ services:
106106
dockerfile: Dockerfile.kafka
107107
restart: always
108108
environment:
109-
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.1}
109+
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.2}
110110
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
111111
KAFKA_CFG_LISTENERS: 'LISTENER_INTERNAL://:9091,LISTENER_LOCAL://:29094'
112112
KAFKA_CFG_ADVERTISED_LISTENERS: 'LISTENER_INTERNAL://kafka-4:9091,LISTENER_LOCAL://localhost:29094'
@@ -128,7 +128,7 @@ services:
128128
dockerfile: Dockerfile.kafka
129129
restart: always
130130
environment:
131-
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.1}
131+
KAFKA_VERSION: ${KAFKA_VERSION:-3.3.2}
132132
KAFKA_CFG_ZOOKEEPER_CONNECT: 'zookeeper-1:2181,zookeeper-2:2181,zookeeper-3:2181'
133133
KAFKA_CFG_LISTENERS: 'LISTENER_INTERNAL://:9091,LISTENER_LOCAL://:29095'
134134
KAFKA_CFG_ADVERTISED_LISTENERS: 'LISTENER_INTERNAL://kafka-5:9091,LISTENER_LOCAL://localhost:29095'

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
KAFKA_VERSION="${KAFKA_VERSION:-3.3.1}"
3+
KAFKA_VERSION="${KAFKA_VERSION:-3.3.2}"
44
KAFKA_HOME="/opt/kafka-${KAFKA_VERSION}"
55

66
if [ ! -d "${KAFKA_HOME}" ]; then

utils.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ var (
193193
V3_2_3_0 = newKafkaVersion(3, 2, 3, 0)
194194
V3_3_0_0 = newKafkaVersion(3, 3, 0, 0)
195195
V3_3_1_0 = newKafkaVersion(3, 3, 1, 0)
196+
V3_3_2_0 = newKafkaVersion(3, 3, 2, 0)
196197

197198
SupportedVersions = []KafkaVersion{
198199
V0_8_2_0,
@@ -248,9 +249,10 @@ var (
248249
V3_2_3_0,
249250
V3_3_0_0,
250251
V3_3_1_0,
252+
V3_3_2_0,
251253
}
252254
MinVersion = V0_8_2_0
253-
MaxVersion = V3_3_1_0
255+
MaxVersion = V3_3_2_0
254256
DefaultVersion = V1_0_0_0
255257

256258
// reduced set of versions to matrix test
@@ -266,7 +268,7 @@ var (
266268
V2_8_2_0,
267269
V3_1_2_0,
268270
V3_2_3_0,
269-
V3_3_1_0,
271+
V3_3_2_0,
270272
}
271273
)
272274

0 commit comments

Comments
 (0)