-
Notifications
You must be signed in to change notification settings - Fork 114
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
Make PodDisruptionBudget an optional feature #540
Conversation
Taking a look at this now as a way to brush up on operator code. Thanks for all the work you put into documenting this Houston! |
This commit adds the necessary logic during solrcloud reconciliation to obey the enable/disable flag for PDB creation.A Still needed is integration with the solrcloud helm chart.
Alright, should be ready for review. Lmk if I missed anything! |
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.
Looks great!
A few hopefully quick changes, but overall great!
return requeueOrNot, err | ||
} | ||
} else { // PDB is disabled, make sure that we delete any previously created pdb that might exist. | ||
err = r.Client.Delete(ctx, pdb) |
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.
Interesting... So it's basically as good to delete something that might not exist as it is to check if it exists first before deleting it.
Co-authored-by: Houston Putman <[email protected]>
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.
Looks good to me!!
resolves #538
List to do: