Skip to content

Commit

Permalink
chore: add and test against kafka 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwe committed Jul 20, 2022
1 parent 1dd58a4 commit b12642e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fvt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
go-version: [1.18.x]
kafka-version: [2.8.1, 3.0.1, 3.1.0]
kafka-version: [2.8.1, 3.0.1, 3.1.0, 3.2.0]
env:
DEBUG: true
GOFLAGS: -trimpath
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.kafka
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ARG KAFKA_MIRROR="https://s3-us-west-2.amazonaws.com/kafka-packages"
RUN mkdir -p "/opt/kafka-2.8.1" && chmod a+rw /opt/kafka-2.8.1 && curl -s "$KAFKA_MIRROR/kafka_2.12-2.8.1.tgz" | tar xz --strip-components=1 -C "/opt/kafka-2.8.1"
RUN mkdir -p "/opt/kafka-3.0.1" && chmod a+rw /opt/kafka-3.0.1 && curl -s "$KAFKA_MIRROR/kafka_2.12-3.0.1.tgz" | tar xz --strip-components=1 -C "/opt/kafka-3.0.1"
RUN mkdir -p "/opt/kafka-3.1.0" && chmod a+rw /opt/kafka-3.1.0 && curl -s "$KAFKA_MIRROR/kafka_2.12-3.1.0.tgz" | tar xz --strip-components=1 -C "/opt/kafka-3.1.0"
RUN mkdir -p "/opt/kafka-3.2.0" && chmod a+rw /opt/kafka-3.2.0 && curl -s "$KAFKA_MIRROR/kafka_2.12-3.2.0.tgz" | tar xz --strip-components=1 -C "/opt/kafka-3.2.0"

COPY entrypoint.sh /

Expand Down
4 changes: 3 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ var (
V3_0_0_0 = newKafkaVersion(3, 0, 0, 0)
V3_0_1_0 = newKafkaVersion(3, 0, 1, 0)
V3_1_0_0 = newKafkaVersion(3, 1, 0, 0)
V3_2_0_0 = newKafkaVersion(3, 2, 0, 0)

SupportedVersions = []KafkaVersion{
V0_8_2_0,
Expand Down Expand Up @@ -227,9 +228,10 @@ var (
V3_0_0_0,
V3_0_1_0,
V3_1_0_0,
V3_2_0_0,
}
MinVersion = V0_8_2_0
MaxVersion = V3_1_0_0
MaxVersion = V3_2_0_0
DefaultVersion = V1_0_0_0
)

Expand Down

0 comments on commit b12642e

Please sign in to comment.