Browse Source

Merge pull request #1667 from Shopify/kafka250

Add support for kafka 2.5.0
Vlad Gorodetsky 5 years ago
parent
commit
baaa74914e
2 changed files with 4 additions and 2 deletions
  1. 1 1
      .github/workflows/ci.yml
  2. 3 1
      utils.go

+ 1 - 1
.github/workflows/ci.yml

@@ -10,7 +10,7 @@ jobs:
       fail-fast: false
       matrix:
         go-version: [1.12.x, 1.13.x, 1.14.x]
-        kafka-version: [2.3.1, 2.4.0]
+        kafka-version: [2.3.1, 2.4.1, 2.5.0]
         platform: [ubuntu-latest]
 
     env:

+ 3 - 1
utils.go

@@ -160,6 +160,7 @@ var (
 	V2_2_0_0  = newKafkaVersion(2, 2, 0, 0)
 	V2_3_0_0  = newKafkaVersion(2, 3, 0, 0)
 	V2_4_0_0  = newKafkaVersion(2, 4, 0, 0)
+	V2_5_0_0  = newKafkaVersion(2, 5, 0, 0)
 
 	SupportedVersions = []KafkaVersion{
 		V0_8_2_0,
@@ -185,9 +186,10 @@ var (
 		V2_2_0_0,
 		V2_3_0_0,
 		V2_4_0_0,
+		V2_5_0_0,
 	}
 	MinVersion = V0_8_2_0
-	MaxVersion = V2_4_0_0
+	MaxVersion = V2_5_0_0
 )
 
 //ParseKafkaVersion parses and returns kafka version or error from a string