Skip to content

Commit 6b5bd6a

Browse files
authored
Merge pull request #1921 from Shopify/kafka280
Add support for Kafka 2.8.0
2 parents 41df78d + f8444d0 commit 6b5bd6a

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
go-version: [1.15.x, 1.16.x]
13-
kafka-version: [2.6.1, 2.7.0]
13+
kafka-version: [2.7.1, 2.8.0]
1414
platform: [ubuntu-latest]
1515

1616
env:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ get:
1313
$(GO) mod tidy
1414

1515
update:
16-
$(GO) get -u -v all
16+
$(GO) get -u -v ./...
1717
$(GO) mod verify
1818
$(GO) mod tidy
1919

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You might also want to look at the [Frequently Asked Questions](https://github.c
2020
Sarama provides a "2 releases + 2 months" compatibility guarantee: we support
2121
the two latest stable releases of Kafka and Go, and we provide a two month
2222
grace period for older releases. This means we currently officially support
23-
Go 1.14 through 1.16, and Kafka 2.6 through 2.7, although older releases are
23+
Go 1.15 through 1.16, and Kafka 2.6 through 2.8, although older releases are
2424
still likely to work.
2525

2626
Sarama follows semantic versioning and provides API stability via the gopkg.in service.

functional_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,10 @@ func prepareDockerTestEnvironment(ctx context.Context, env *testEnvironment) err
119119
// found here: https://docs.confluent.io/current/installation/versions-interoperability.html
120120
var confluentPlatformVersion string
121121
switch env.KafkaVersion {
122-
case "2.7.0":
123-
confluentPlatformVersion = "6.0.1"
124-
case "2.6.1":
125-
confluentPlatformVersion = "6.0.1"
126-
case "2.5.1":
127-
confluentPlatformVersion = "5.5.0"
122+
case "2.8.0":
123+
confluentPlatformVersion = "6.1.1"
124+
case "2.7.1":
125+
confluentPlatformVersion = "6.1.1"
128126
default:
129127
return fmt.Errorf("don't know what confluent platform version to use for kafka %s", env.KafkaVersion)
130128
}

utils.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ var (
163163
V2_5_0_0 = newKafkaVersion(2, 5, 0, 0)
164164
V2_6_0_0 = newKafkaVersion(2, 6, 0, 0)
165165
V2_7_0_0 = newKafkaVersion(2, 7, 0, 0)
166+
V2_8_0_0 = newKafkaVersion(2, 8, 0, 0)
166167

167168
SupportedVersions = []KafkaVersion{
168169
V0_8_2_0,
@@ -191,9 +192,10 @@ var (
191192
V2_5_0_0,
192193
V2_6_0_0,
193194
V2_7_0_0,
195+
V2_8_0_0,
194196
}
195197
MinVersion = V0_8_2_0
196-
MaxVersion = V2_7_0_0
198+
MaxVersion = V2_8_0_0
197199
DefaultVersion = V1_0_0_0
198200
)
199201

0 commit comments

Comments
 (0)