-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Store CA generation in Ca class #11277
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
Conversation
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Store CA generation directly in Ca class * Simplify getter methods * Remove duplicate methods from ReconcilerUtils Signed-off-by: Katherine Stanley <[email protected]>
46e3d17
to
8a90ba5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the reviews everyone, I'm actually going to mark this as [Do Not Merge] as I'm working on a follow up refactor and want to make sure that these changes fully work with the follow up PR before merging. |
Signed-off-by: Katherine Stanley <[email protected]>
@ppatierno @tinaselenge @im-konge I've pushed a commit with a couple of small changes to better align this with a future refactor I will need to do. Please take another look when you get time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Good refactoring!
Type of change
Description
Refactoring CA generation methods in Ca class:
This change stores the CA generation in a variable, rather than relying on the generation inside the Secret class. This will help with future refactoring for cert-manager integration that will remove the direct use of the Secret in this class. It also simplifies the code, making it easier to follow.
Finally there was a duplicate method in ReconcilerUtils for determining if the CA generation changed, so this method has been removed and the code updated to use the method in the Ca class.
Checklist
Please go through this checklist and make sure all applicable tasks have been done