-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove the KRaft and NodePool annotations #11686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the KRaft and NodePool annotations #11686
Conversation
Signed-off-by: Jakub Scholz <www@scholzj.com>
/azp run upgrade |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/packit test --labels upgrade,regression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 just one nit to consider.
@@ -331,6 +331,8 @@ protected void deployKafkaClusterWithWaitForReadiness(final String componentsNam | |||
KafkaNodePoolTemplates.brokerPoolPersistentStorage(componentsNamespaceName, BROKER_NODE_NAME, CLUSTER_NAME, 3).build(), | |||
KafkaTemplates.kafka(componentsNamespaceName, CLUSTER_NAME, 3) | |||
.editMetadata() | |||
// This is still needed for upgrade tests. It should be remove once the upgrade tests use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe here same TODO: so it's easier to find?
@@ -105,6 +105,8 @@ public class ResourceAnnotations { | |||
* Annotation for enabling or disabling the Node Pools. This annotation is used | |||
* on the Kafka CR | |||
*/ | |||
// This is still needed for upgrade tests. It should be remove once the upgrade tests use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a TODO:
prefix here, rather than just comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about opening an issue to track it and adding the issue link here. We did this in the past more times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will open an issue and reference it here. But I did not want to do it before we had the approvals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. A couple of nits.
CHANGELOG.md
Outdated
@@ -2,7 +2,8 @@ | |||
|
|||
## 0.48.0 | |||
|
|||
* n/a | |||
* KRaft and Kafka Node Pools are now enabled by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* KRaft and Kafka Node Pools are now enabled by default. | |
* KRaft mode and Kafka Node Pools are now enabled by default. |
@@ -105,6 +105,8 @@ public class ResourceAnnotations { | |||
* Annotation for enabling or disabling the Node Pools. This annotation is used | |||
* on the Kafka CR | |||
*/ | |||
// This is still needed for upgrade tests. It should be remove once the upgrade tests use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about opening an issue to track it and adding the issue link here. We did this in the past more times.
Signed-off-by: Jakub Scholz <www@scholzj.com>
Type of change
Description
As discussed in #11657, there seems to be consensus to stop enforcing the
strimzi.io/node-pools
andstrimzi.io/kraft
annotations. This PR removes them from the docs, examples, and from source code. The only place where they remain are the upgrade/downgrade system tests. They should be removed from there only once we do not use them with any Strimzi version enforcing them.This PR - assuming it is approved and merged - should make #11657 obsolete.
There is no real need for users to remove the annotations - they will be simply ignored.
The validation for pre-existing ZooKeeper-based clusters still remains in place. So if user upgrades without migrating all their clusters to KRaft, they should get error like this:
Similarly, the operator still validates the presence of the Node Pools. So if user tries to deploy a ZooKeeper-based cluster without node pool based on an old example, they still get this error:
We also keep validating the presence of controller nodes. So YAML for an ols Zoo-based cluster without controller nodes would also fail with the corresponding error:
Checklist