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

Separate logging configuration and collecting plugin information from the conenctor reconciliation #9987

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Apr 17, 2024

Type of change

  • Refactoring

Description

The dynamic update of logging configuration (in both MM2 and Connect) as well as gathering of information about plugins (Connect only) is currently hidden inside the connector reconciliation. That might make some sense for Connect, since these things are done only when the connector operator is enabled. But overall it makes it hard to read the code and understand what is done where. It also prevents us from sharing the code for updating the logging configuration between Connect and MM2.

I also found out we never update logging when connector operator is disabled. This is tracked in #9986 and not addressed in this PR.

This PR separates these actions into separate steps to give better overview of what is happening. But it does not change the basic premise that for Connect, both logging configuration and plugins info gathering happens only with enabled Connector operator.

Checklist

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

… the conenctor reconciliation

Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj scholzj added this to the 0.41.0 milestone Apr 17, 2024
@scholzj scholzj requested a review from ppatierno April 17, 2024 11:50
Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj
Copy link
Member Author

scholzj commented Apr 17, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM. I left just a nit.

Signed-off-by: Jakub Scholz <www@scholzj.com>
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.

LGTM

@scholzj scholzj merged commit 51442a7 into strimzi:main Apr 18, 2024
13 checks passed
@scholzj scholzj deleted the sepaarte-logging-update-and-plugins-from-connector-reconciliation branch April 18, 2024 13:54
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.

None yet

3 participants