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

Refactor connector preparation our of KafkaMirrorMaker2AssemblyOperator #9593

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Jan 24, 2024

Type of change

  • Refactoring

Description

This PR refactors how the Kafka Mirror Maker 2 connectors are managed in KafkaMirrorMaker2AssemblyOperator. It factors the preparation of the connectors into a separate class KafkaMirrorMaker2Connectors linked from KafkaMirrorMaker2Cluster. This class doesn't do any reconciliation, it only prepares the connector specifications.

The reconciliation is still handled by KafkaMirrorMaker2AssemblyOperator. The code there was only slightly simplified to use the new class.

This refactoring allowed to easily add more unit tests for the various connector configurations that should hopefully help us to allow issues such as #9418 in the future.

This should resolve #9419.

Checklist

  • Write tests
  • Make sure all tests pass
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
  • Reference relevant issue(s) and close them after merging

@scholzj scholzj added this to the 0.40.0 milestone Jan 24, 2024
@scholzj
Copy link
Member Author

scholzj commented Jan 24, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 090c383 into strimzi:main Jan 25, 2024
21 checks passed
@scholzj scholzj deleted the refactor-MM2-connectors-creation branch January 25, 2024 15:08
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.

Improve test coverage of KafkaMirrorMaker2AssemblyOperator and its handling of MM2 connectors
2 participants