-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Only roll pods once for ClientsCa cert renewal #10814
base: main
Are you sure you want to change the base?
Conversation
Update CaReconciler to only roll pods when cluster CA key is replaced, not when clients CA key is replaced. Currently we do two rolling updates for the key replacement, once in CaReconciler, and once in component reconcilers, e.g. KafkaReconciler. This is not required for clients CA since is is only used for trust. Signed-off-by: Katherine Stanley <[email protected]>
1fa4618
to
daee331
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
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!
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -375,38 +375,29 @@ Future<Void> reconcileClusterOperatorSecret(Clock clock) { | |||
|
|||
/** | |||
* Perform a rolling update of the cluster so that CA certificates get added to their truststores, or expired CA | |||
* certificates get removed from their truststores. Note this is only necessary when the CA certificate has changed | |||
* due to a new CA key. It is not necessary when the CA certificate is replace while retaining the existing key. | |||
* certificates get removed from their truststores. Note this is only necessary when the Cluster CA certificate has changed |
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.
I'm trying to understand this doc and the method name. The doc says it's only needed for the cluster CA, but the method name doesn't make that distinction. Perhaps it should?
Type of change
Select the type of your PR
Description
Update CaReconciler to only roll pods when cluster CA key is replaced, not when clients CA key is replaced.
Currently we do two rolling updates for the key replacement, once in CaReconciler, and once in component reconcilers, e.g. KafkaReconciler. This is not required for clients CA since is is only used for trust.
Checklist
Please go through this checklist and make sure all applicable tasks have been done