Skip to content
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

Clean-up the KRaftUtils class #10987

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Dec 25, 2024

Type of change

  • Refactoring

Description

The KRaftUtils.validateKafkaCrForKRaft does contain only one remaining validation - that the .spec section is not null. This validation is not really used, because we check this already in the AbstractOperator class. So this method can be removed.

That would leave the KRaftUtils class with only one remaining method - validateMetadataVersion - which validates that the KRaft metadata version is at least 3.3 (required for KRaft). This is used by the KafkaCluster class and can be moved there. That is done in this PR and the KRaftUtils class is removed.

Checklist

  • Write tests
  • Make sure all tests pass
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally

Signed-off-by: Jakub Scholz <[email protected]>
@scholzj scholzj added this to the 0.46.0 milestone Dec 25, 2024
@scholzj scholzj requested a review from ppatierno December 25, 2024 09:35
@scholzj
Copy link
Member Author

scholzj commented Dec 25, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 416c5da into strimzi:main Dec 26, 2024
21 checks passed
@scholzj scholzj deleted the KraftUtils-cleanup branch December 26, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants