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

Improve Cruise Control client creation and testing #10918

Merged
merged 11 commits into from
Jan 30, 2025
Merged

Conversation

fvaleri
Copy link
Contributor

@fvaleri fvaleri commented Dec 6, 2024

Type of change

  • Refactoring

Description

This patch improves Cruise Control client creation and testing.
It also removes the Kafka admin client creation method.

Closes #10916.

Checklist

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

@fvaleri fvaleri requested a review from scholzj December 6, 2024 12:26
@ppatierno ppatierno added this to the 0.46.0 milestone Dec 6, 2024
@fvaleri fvaleri force-pushed the to-utils branch 2 times, most recently from 7054e5d to c1b176f Compare December 7, 2024 13:18
@fvaleri fvaleri requested a review from scholzj December 10, 2024 11:35
@ppatierno ppatierno requested a review from a team January 7, 2025 12:15
fvaleri added a commit to fvaleri/strimzi-kafka-operator that referenced this pull request Jan 7, 2025
This change makes the TopicOperatorConfig class consistent with the other operators.

For more info see: strimzi#10918 (comment)

Signed-off-by: Federico Valeri <[email protected]>
fvaleri added a commit to fvaleri/strimzi-kafka-operator that referenced this pull request Jan 7, 2025
This change makes the TopicOperatorConfig class consistent with the other operators.

For more info see: strimzi#10918 (comment)

Signed-off-by: Federico Valeri <[email protected]>
fvaleri added a commit to fvaleri/strimzi-kafka-operator that referenced this pull request Jan 7, 2025
This change makes the TopicOperatorConfig class consistent with the other operators.

For more info see: strimzi#10918 (comment)

Signed-off-by: Federico Valeri <[email protected]>
fvaleri added a commit to fvaleri/strimzi-kafka-operator that referenced this pull request Jan 7, 2025
This change makes the TopicOperatorConfig class consistent with the other operators.

For more info see: strimzi#10918 (comment)

Signed-off-by: Federico Valeri <[email protected]>
Copy link
Contributor

@katheris katheris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a comment around the new Config record, but I also think this PR needs to be renamed as "Remove unnecessary methods from TopicOperatorUtil class" seems misleading to me. I think something like "Refactor TopicOperatorConfig initialisation" would better describe the changes.

@fvaleri
Copy link
Contributor Author

fvaleri commented Jan 23, 2025

@ppatierno @katheris I did what you asked in the community call.

Copy link
Contributor

@katheris katheris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fvaleri, two small comments. Also I wonder if we could update the title to be more descriptive e.g. Remove client creation methods from TopicOperatorUtil class and add CC client config validation

@fvaleri fvaleri changed the title Remove unnecessary methods from TopicOperatorUtil class Remove client creation methods from TopicOperatorUtil class and add CC client config validation Jan 27, 2025
@fvaleri fvaleri changed the title Remove client creation methods from TopicOperatorUtil class and add CC client config validation Improve Cruise Control client creation and testing Jan 27, 2025
This patch improves Cruise Control client creation and testing.
It also removes the Kafka admin client creation method.

Closes strimzi#10916.

Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
@scholzj
Copy link
Member

scholzj commented Jan 27, 2025

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Federico Valeri <[email protected]>
@scholzj scholzj merged commit bb37c15 into strimzi:main Jan 30, 2025
13 checks passed
@scholzj
Copy link
Member

scholzj commented Jan 30, 2025

Thanks for the PR.

@fvaleri fvaleri deleted the to-utils branch January 30, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove unnecessary methods from TopicOperatorUtil class
4 participants