-
Notifications
You must be signed in to change notification settings - Fork 36
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
Telegraf Operator prevents pods creation when the secret already exists #40
Comments
I have reproduced it by deploying telegraf-operator, manually creating the secret with matching name and then deploying a statefulset (statefulset will cause the name of the secret to be predictable, hence this is how I could reproduce it). However, I can see how this would happen when telegraf-operator was temporarily down when a pod in a statefulset was being deleted. I think the best long term approach would be to support upgrading the secret when it already exists. This has the danger of overwriting an existing secret that just collided because of same name. Ideally we should only update the secret if it has a valid annotation - i.e. So, I propose we always add the annotation and regarding handling of existing secrets:
Additional checks could be made regarding the secret - such as that the secret is of type |
@wojciechka I like the annotation approach of calling out telegraf-operator as the Regards to secret update, the cli fail flag would make sense to help with the upgrade. Once users are beyond this change do we see a need for this going forward if the annotations are present? |
@wojciechka I tested the PR locally and it solves the issue for us 👍 |
If a secret for pod already exists, the exception is raised and pod is not being created (with or without sidecar)
telegraf-operator logs
statefulset events
I expect to automatically reload the secret (if it was created using telegraf-operator) or to run pods without the sidecat
Relevant URLs
N/A
What products and version are you using?
The text was updated successfully, but these errors were encountered: