Skip to content

Commit 1fe1c43

Browse files
authored
Add Kafka 3.4.0 to 0.33 x branch and prepare for the 0.33.2 release (#8109)
Signed-off-by: Jakub Scholz <www@scholzj.com>
1 parent 8f99cf8 commit 1fe1c43

File tree

105 files changed

+722
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+722
-232
lines changed

.checksums

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
# if this checksum has changed as part of any non-release specific changes, please apply your changes to the
77
# development version of the helm charts in ./packaging/helm-charts
88
### IMPORTANT ###
9-
HELM_CHART_CHECKSUM="81a667ae7c51c9bac9bff1a8390bcd2a26ef42ed -"
9+
HELM_CHART_CHECKSUM="9c360dbc87edc9f202f4a474ea054a8d381800e7 -"
1010

1111
### IMPORTANT ###
1212
# if the below line has changed, this means the ./install directory has changed
1313
# the checksum and ./install directory should only be modified on official releases as part of a release
1414
# if this checksum has changed as part of any non-release specific changes, please apply your changes to the
1515
# development version of the helm charts in ./packaging/install
1616
### IMPORTANT ###
17-
INSTALL_CHECKSUM="907385a566e83a4c57e5ab6bdeac5773e77845bd -"
17+
INSTALL_CHECKSUM="a69e0450f7de8e5af0710e3d2ac9ad78d97cf0e3 -"
1818

1919
### IMPORTANT ###
2020
# if the below line has changed, this means the ./examples directory has changed
2121
# the checksum and ./examples directory should only be modified on official releases as part of a release
2222
# if this checksum has changed as part of any non-release specific changes, please apply your changes to the
2323
# development version of the helm charts in ./packaging/examples
2424
### IMPORTANT ###
25-
EXAMPLES_CHECKSUM="a2dc914a1941c7f6c9bab04d7ca01a8c1520e757 -"
25+
EXAMPLES_CHECKSUM="65ddcbf2f091cc451f1e11473a42f69fcd40d8fd -"

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.strimzi</groupId>
66
<artifactId>strimzi</artifactId>
7-
<version>0.33.1</version>
7+
<version>0.33.2</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010
<artifactId>api</artifactId>

certificate-manager/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>strimzi</artifactId>
77
<groupId>io.strimzi</groupId>
8-
<version>0.33.1</version>
8+
<version>0.33.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<artifactId>certificate-manager</artifactId>

cluster-operator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.strimzi</groupId>
66
<artifactId>strimzi</artifactId>
7-
<version>0.33.1</version>
7+
<version>0.33.2</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010
<artifactId>cluster-operator</artifactId>

cluster-operator/src/test/java/io/strimzi/operator/cluster/KafkaVersionTestUtils.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ public class KafkaVersionTestUtils {
2020

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

23-
public static final String LATEST_KAFKA_VERSION = "3.3.2";
24-
public static final String LATEST_FORMAT_VERSION = "3.3";
25-
public static final String LATEST_PROTOCOL_VERSION = "3.3";
23+
public static final String LATEST_KAFKA_VERSION = "3.4.0";
24+
public static final String LATEST_FORMAT_VERSION = "3.4";
25+
public static final String LATEST_PROTOCOL_VERSION = "3.4";
2626
public static final String LATEST_ZOOKEEPER_VERSION = "3.6.3";
2727
public static final String LATEST_CHECKSUM = "ABCD1234";
28-
public static final String LATEST_THIRD_PARTY_VERSION = "3.3.x";
28+
public static final String LATEST_THIRD_PARTY_VERSION = "3.4.x";
2929
public static final String LATEST_KAFKA_IMAGE = KAFKA_IMAGE_STR + LATEST_KAFKA_VERSION;
3030
public static final String LATEST_KAFKA_CONNECT_IMAGE = KAFKA_CONNECT_IMAGE_STR + LATEST_KAFKA_VERSION;
3131
public static final String LATEST_KAFKA_MIRROR_MAKER_IMAGE = KAFKA_MIRROR_MAKER_IMAGE_STR + LATEST_KAFKA_VERSION;
3232
public static final String LATEST_KAFKA_MIRROR_MAKER_2_IMAGE = KAFKA_MIRROR_MAKER_2_IMAGE_STR + LATEST_KAFKA_VERSION;
3333

34-
public static final String PREVIOUS_KAFKA_VERSION = "3.2.1";
35-
public static final String PREVIOUS_FORMAT_VERSION = "3.2";
36-
public static final String PREVIOUS_PROTOCOL_VERSION = "3.2";
34+
public static final String PREVIOUS_KAFKA_VERSION = "3.3.2";
35+
public static final String PREVIOUS_FORMAT_VERSION = "3.3";
36+
public static final String PREVIOUS_PROTOCOL_VERSION = "3.3";
3737
public static final String PREVIOUS_ZOOKEEPER_VERSION = "3.6.3";
3838
public static final String PREVIOUS_CHECKSUM = "ABCD1234";
39-
public static final String PREVIOUS_THIRD_PARTY_VERSION = "3.2.x";
39+
public static final String PREVIOUS_THIRD_PARTY_VERSION = "3.3.x";
4040
public static final String PREVIOUS_KAFKA_IMAGE = KAFKA_IMAGE_STR + PREVIOUS_KAFKA_VERSION;
4141
public static final String PREVIOUS_KAFKA_CONNECT_IMAGE = KAFKA_CONNECT_IMAGE_STR + PREVIOUS_KAFKA_VERSION;
4242
public static final String PREVIOUS_KAFKA_MIRROR_MAKER_IMAGE = KAFKA_MIRROR_MAKER_IMAGE_STR + PREVIOUS_KAFKA_VERSION;

cluster-operator/src/test/java/io/strimzi/operator/cluster/model/KafkaConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void passwordType() {
8989
@ParallelTest
9090
public void invalidVersion() {
9191
assertConfigError("inter.broker.protocol.version", "dclncswn",
92-
"inter.broker.protocol.version has value 'dclncswn' which does not match the required pattern: \\Q0.8.0\\E(\\.[0-9]+)*|\\Q0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\E|\\Q2.7-IV1\\E|\\Q2.7-IV2\\E|\\Q2.8\\E(\\.[0-9]+)*|\\Q2.8-IV0\\E|\\Q2.8-IV1\\E|\\Q3.0\\E(\\.[0-9]+)*|\\Q3.0-IV0\\E|\\Q3.0-IV1\\E|\\Q3.1\\E(\\.[0-9]+)*|\\Q3.1-IV0\\E|\\Q3.2\\E(\\.[0-9]+)*|\\Q3.2-IV0\\E|\\Q3.3\\E(\\.[0-9]+)*|\\Q3.3-IV0\\E|\\Q3.3-IV1\\E|\\Q3.3-IV2\\E|\\Q3.3-IV3\\E|\\Q3.4\\E(\\.[0-9]+)*|\\Q3.4-IV0\\E");
9393
}
9494

9595
@ParallelTest

config-model-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>strimzi</artifactId>
77
<groupId>io.strimzi</groupId>
8-
<version>0.33.1</version>
8+
<version>0.33.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

config-model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>strimzi</artifactId>
77
<groupId>io.strimzi</groupId>
8-
<version>0.33.1</version>
8+
<version>0.33.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

crd-annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>strimzi</artifactId>
77
<groupId>io.strimzi</groupId>
8-
<version>0.33.1</version>
8+
<version>0.33.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

crd-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>strimzi</artifactId>
77
<groupId>io.strimzi</groupId>
8-
<version>0.33.1</version>
8+
<version>0.33.2</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<artifactId>crd-generator</artifactId>

development-docs/KAFKA_VERSIONS.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Adding / removing Kafka versions
2+
3+
## Adding new Kafka versions
4+
5+
There is no _definitive_ guide as every version might bring surprises.
6+
But these are some of the tasks you usually have to do.
7+
8+
* If you add a new minor version, add new 3rd party libs directory to `docker-images/artifacts/kafka-thirdparty-libs`
9+
* This directory is typically shared by all patch releases which are part of the same minor release. So it is named `<MAJOR>.<MINOR>.x`- e.g. `1.1.x`
10+
* Add a `pom.xml` file with dependencies and make sure they are aligned with the dependencies inside Kafka (e.g. use similar version of Jackson libraries)
11+
* Typically, you would do this by copying the directory for the previous minor version
12+
* Add the new version to `kafka-versions.yaml` file
13+
* If the version you are adding is the latest, mark it as `default: true` and mark the previous one as `default: false`
14+
* If the version you are adding is the latest
15+
* Update the Kafka versions and protocol versions in the documentation `attributes.adoc`
16+
* If needed, update the examples (only in the `packaging/examples` directory):
17+
* The `version` and the `inter.broker.protocol.version` fields
18+
* The Docker image tag in the Kafka connect Build example
19+
* Update the main `pom.xml` to use the latest Kafka version in the operator
20+
* Update `systemtest/src/test/resources/upgrade/StrimziUpgradeST.yaml` with the new version
21+
* Update protocol versions in `cluster-operator/src/test/java/io/strimzi/operator/cluster/model/KafkaConfigurationTests.java` if needed
22+
* Make sure the `cluster-operator/src/test/java/io/strimzi/operator/cluster/KafkaVersionTestUtils.java` is up-to-date
23+
* If you are adding a release candidate which is not yet published to Maven central, make sure to update the `ST_FILE_PLUGIN_URL_DEFAULT` field in `systemtest/src/main/java/io/strimzi/systemtest/Environment.java` to get the system tests to pass.
24+
* Run `make all` to update all the installation files, generated docs files, Helm chart etc.
25+
You will need to commit also all the files it updates before opening a PR.
26+
* Add a `CHANGELOG.md` record
27+
* Run unit tests
28+
* Run system tests (typically as part of the PR on Azure Pipelines)
29+
30+
## Removing Kafka version
31+
32+
* Edit the `kafka-versions.yaml` file and mark the version as unsupported (do not remove it, just set the `supported` flag to `false`)
33+
* Run `make all` to update all the installation files, generated docs files, Helm chart etc.
34+
You will need to commit also all the files it updates before opening a PR.
35+
* Make sure the version is not referenced anywhere anymore (apart from the obvious places such as CHANGELOG.md)
36+
* Add a `CHANGELOG.md` record
37+
* Run unit tests
38+
* Run system tests

0 commit comments

Comments
 (0)