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

Remove unneeded state (old certificate secrets) from the Ca classes #10023

Merged

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Apr 24, 2024

Type of change

  • Refactoring

Description

The Ca classes currently hold the old certificate secrets as a state through the whole reconciliation. This increases memory consumption but could be also misleading as they might not be up to date and might contain old certificates.

They seem to be used only in two places. One right after the state is set and one later in the reconciliation where we anyway query the secret again. So it seems to be easy to remove it and pass them to the methods directly as done in this PR.

This should also make it easier to split the one big Secret with all Kafka node certificates

Checklist

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

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

scholzj commented Apr 24, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

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 on some methods naming.

Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj
Copy link
Member Author

scholzj commented Apr 26, 2024

/azp run kraft-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit dbec819 into strimzi:main Apr 26, 2024
21 checks passed
@scholzj scholzj deleted the remove-old-secrets-state-from-the-CA-objects branch April 26, 2024 14:21
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