-
Notifications
You must be signed in to change notification settings - Fork 12
Check Needs-Restart condition and restart pods if required #1018
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
base: main
Are you sure you want to change the base?
Conversation
41c1323
to
7ebcc4c
Compare
7ebcc4c
to
ff136fa
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.
You're right, I'm not a huge fan of further using the conditions but this is the minimally effective patch!
A test would be fantastic. I think it would be fairly easy to emulate this case in the ginko suite that's using the MockAdminAPI.
@@ -0,0 +1,4 @@ | |||
project: operator | |||
kind: Fixed | |||
body: 'The legacy operator is more robust against configuration changes that "need restart": it will sweep over pods and mark those requiring a configuration restart according to the admin API response.' |
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.
nit: for consistency refer to it as either the vectorized
operator or operator v1.
updateForConfigRestart = true | ||
} | ||
|
||
if patchResult.IsEmpty() && !updateForConfigRestart { |
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.
Would you mind adding a log line here as well? Hopefully we won't hit it but it will very likely prevent a bit of hair pulling if we do find ourselves asking "why isn't the operator restarting my Pods?" again.
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.
Yeah.
This is still not quite right. It'd be good if it were, but the sts is still stripping off the "restarting" condition for some reason, which means that all pods don't get eventually restarted. |
No description provided.