Skip to content

Commit

Permalink
Add support for Kafka 3.8.1
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <[email protected]>
  • Loading branch information
scholzj committed Oct 30, 2024
1 parent 5df1516 commit e6ca875
Show file tree
Hide file tree
Showing 48 changed files with 78 additions and 55 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.45.0

* Add support for Kafka 3.8.1

## 0.44.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class KafkaVersionTestUtils {

private static final Set<String> SUPPORTED_VERSIONS = new KafkaVersion.Lookup(Collections.emptyMap(), Collections.emptyMap(), Collections.emptyMap(), Collections.emptyMap()).supportedVersions();

public static final String LATEST_KAFKA_VERSION = "3.8.0";
public static final String LATEST_KAFKA_VERSION = "3.8.1";
public static final String LATEST_FORMAT_VERSION = "3.8";
public static final String LATEST_PROTOCOL_VERSION = "3.8";
public static final String LATEST_METADATA_VERSION = "3.8-IV0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ private static Map<String, ConfigModel> configs(String version) throws NoSuchMet
continue;
} else if (key.validator != null && "class org.apache.kafka.raft.QuorumConfig$ControllerQuorumBootstrapServersValidator".equals(key.validator.getClass().toString())) { // we compare the class names because of changes done between Kafka version 3.7 and 3.8 => this is for Kafka 3.8 and newer
continue;
} else if (key.validator != null && "class org.apache.kafka.common.compress.GzipCompression$LevelValidator".equals(key.validator.getClass().toString())) { // we compare the class names because of changes done between Kafka version 3.7 and 3.8 => this is for Kafka 3.8 and newer
} else if (key.validator != null && "class org.apache.kafka.common.compress.GzipCompression$LevelValidator".equals(key.validator.getClass().toString())) { // we compare the class names because of changes done between Kafka version 3.7 and 3.8 => this is for Kafka 3.8.0
descriptor.setPattern("[1-9]{1}|-1");
} else if (key.validator != null && "class org.apache.kafka.common.record.CompressionType$1$1".equals(key.validator.getClass().toString()) && configName.equals("compression.gzip.level")) { // we compare the class names because of changes done between Kafka version 3.8.0 and 3.8.1 => this is for Kafka 3.8.1 and newer. Given it is an anonymous class, we also check the field name to protect against some changes
descriptor.setPattern("[1-9]{1}|-1");
} else if (key.validator != null) {
throw new IllegalStateException("Invalid validator class " + key.validator.getClass() + " for option " + configName);
throw new IllegalStateException("Invalid validator '" + key.validator.getClass() + "' for option '" + configName + "'");
}

result.put(configName, descriptor);
Expand Down
1 change: 1 addition & 0 deletions documentation/modules/snip-images.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ a|
* {DockerOrg}/kafka:{DockerTag}-kafka-3.7.0
* {DockerOrg}/kafka:{DockerTag}-kafka-3.7.1
* {DockerOrg}/kafka:{DockerTag}-kafka-3.8.0
* {DockerOrg}/kafka:{DockerTag}-kafka-3.8.1

a|
Strimzi image for running Kafka, including:
Expand Down
1 change: 1 addition & 0 deletions documentation/modules/snip-kafka-versions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
| 3.7.0 | 3.7 | 3.7 | 3.8.3
| 3.7.1 | 3.7 | 3.7 | 3.8.4
| 3.8.0 | 3.8 | 3.8 | 3.8.4
| 3.8.1 | 3.8 | 3.8 | 3.8.4
|=================
4 changes: 2 additions & 2 deletions documentation/shared/attributes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
:KubernetesVersion: 1.25 and later

// Kafka upgrade attributes used in kafka upgrades section
:DefaultKafkaVersion: 3.8.0
:DefaultKafkaVersion: 3.8.1
:DefaultKafkaMetadataVersion: 3.8
:KafkaMetadataVersionLower: 3.7-IV4
:KafkaMetadataVersionHigher: 3.8-IV0
:KafkaVersionLower: 3.7.0
:KafkaVersionHigher: 3.8.0
:KafkaVersionHigher: 3.8.1
:ExampleImageTagUpgrades: quay.io/strimzi/kafka:{ProductVersion}-kafka-{KafkaVersionHigher}

//inter-broker protocol and log message version
Expand Down
2 changes: 1 addition & 1 deletion documentation/shared/version-dependent-attrs.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Generated by documentation/version-dependent-attrs.sh during the build
// DO NOT EDIT BY HAND
:DefaultKafkaVersion: 3.8.0
:DefaultKafkaVersion: 3.8.1
10 changes: 10 additions & 0 deletions kafka-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,14 @@
zookeeper: 3.8.4
third-party-libs: 3.8.x
supported: true
default: false
- version: 3.8.1
format: 3.8
protocol: 3.8
metadata: 3.8
url: https://archive.apache.org/dist/kafka/3.8.1/kafka_2.13-3.8.1.tgz
checksum: B43FADA353B7DCA51C0F90ACF594EC1CE06B2344C046D4059D4DEAB0615E0E3E76E92ECCDBDFA1ADAD1FBDE76C5F25E71ACD0DB013FB4B1778827448B5285EDF
zookeeper: 3.8.4
third-party-libs: 3.8.x
supported: true
default: true
6 changes: 3 additions & 3 deletions packaging/examples/connect/kafka-connect-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
# # needing to call the Connect REST API directly
# strimzi.io/use-connector-resources: "true"
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
bootstrapServers: my-cluster-kafka-bootstrap:9093
tls:
Expand All @@ -33,11 +33,11 @@ spec:
# it should not happen that you pull someone else's container image. However, we
# recommend changing this to your own container registry or using a different
# image name for any other than demo purposes.
image: ttl.sh/strimzi-connect-example-3.8.0:24h
image: ttl.sh/strimzi-connect-example-3.8.1:24h
plugins:
- name: kafka-connect-file
artifacts:
- type: maven
group: org.apache.kafka
artifact: connect-file
version: 3.8.0
version: 3.8.1
2 changes: 1 addition & 1 deletion packaging/examples/connect/kafka-connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
# # needing to call the Connect REST API directly
# strimzi.io/use-connector-resources: "true"
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
bootstrapServers: my-cluster-kafka-bootstrap:9093
tls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kafka-ephemeral-single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 1
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kafka-ephemeral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kafka-jbod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kafka-persistent-single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 1
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kafka-persistent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kafka-with-node-pools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ metadata:
strimzi.io/node-pools: enabled
spec:
kafka:
version: 3.8.0
version: 3.8.1
listeners:
- name: plain
port: 9092
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kraft/kafka-ephemeral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ metadata:
strimzi.io/kraft: enabled
spec:
kafka:
version: 3.8.0
version: 3.8.1
metadataVersion: 3.8-IV0
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kraft/kafka-jbod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ metadata:
strimzi.io/kraft: enabled
spec:
kafka:
version: 3.8.0
version: 3.8.1
metadataVersion: 3.8-IV0
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kraft/kafka-single-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metadata:
strimzi.io/kraft: enabled
spec:
kafka:
version: 3.8.0
version: 3.8.1
metadataVersion: 3.8-IV0
listeners:
- name: plain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metadata:
strimzi.io/kraft: enabled
spec:
kafka:
version: 3.8.0
version: 3.8.1
metadataVersion: 3.8-IV0
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/kafka/kraft/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ metadata:
strimzi.io/kraft: enabled
spec:
kafka:
version: 3.8.0
version: 3.8.1
metadataVersion: 3.8-IV0
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/metrics/kafka-connect-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app: my-connect-cluster
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
bootstrapServers: my-cluster-kafka-bootstrap:9092
metricsConfig:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/metrics/kafka-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: plain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app: my-mm2-cluster
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
connectCluster: "my-cluster-target"
clusters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: KafkaMirrorMaker2
metadata:
name: my-mirror-maker-2
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
connectCluster: "cluster-b" # Must be the target custer
clusters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: KafkaMirrorMaker2
metadata:
name: my-mirror-maker-2
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
connectCluster: "cluster-b" # Must be the target custer
clusters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: KafkaMirrorMaker2
metadata:
name: my-mirror-maker-2
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
connectCluster: "cluster-b" # Must be the target custer
clusters:
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/mirror-maker/kafka-mirror-maker-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: KafkaMirrorMaker2
metadata:
name: my-mirror-maker-2
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
connectCluster: "cluster-b" # Must be the target custer
clusters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: KafkaMirrorMaker
metadata:
name: my-mirror-maker
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
consumer:
bootstrapServers: cluster-a-kafka-bootstrap:9093 # Source cluster
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/mirror-maker/kafka-mirror-maker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: KafkaMirrorMaker
metadata:
name: my-mirror-maker
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
consumer:
bootstrapServers: cluster-a-kafka-bootstrap:9092 # Source cluster
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/mirror-maker/kafka-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: cluster-a
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 1
listeners:
- name: plain
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/mirror-maker/kafka-target.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: cluster-b
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 1
listeners:
- name: plain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 1
listeners:
- name: tls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 1
listeners:
- name: tls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ metadata:
# # needing to call the Connect REST API directly
# strimzi.io/use-connector-resources: "true"
spec:
version: 3.8.0
version: 3.8.1
replicas: 1
bootstrapServers: my-cluster-kafka-bootstrap:9093
tls:
Expand Down
2 changes: 1 addition & 1 deletion packaging/examples/security/scram-sha-512-auth/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: my-cluster
spec:
kafka:
version: 3.8.0
version: 3.8.1
replicas: 3
listeners:
- name: tls
Expand Down
Loading

0 comments on commit e6ca875

Please sign in to comment.