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

Consolidate methods updating Kafka CR status in KafkaReconciler #10995

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Dec 27, 2024

Type of change

  • Refactoring

Description

The KafkaReconciler currently has 3 different methods that are all called at the end of the reconciliation chain and just set some field in the Kafka CR status. This PR consolidates them into a single method. It also adds check that the metadata state is set in the status to the unit tests.

Checklist

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

@scholzj scholzj added this to the 0.46.0 milestone Dec 27, 2024
@scholzj scholzj requested a review from ppatierno December 27, 2024 13:42
@scholzj
Copy link
Member Author

scholzj commented Dec 27, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 32c0a3e into strimzi:main Dec 28, 2024
21 checks passed
@scholzj scholzj deleted the consolidate-methods-updating-status-in-KafkaReconciler branch December 28, 2024 13:01
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