-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: TELCO-887 Cleanup annotations #25
Conversation
On remove event, the library needs to also remove the networks annotation, and drop privileges
3694e34
to
b2ff67c
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.
Do we need to do this? We're about to remove the StatefulSet so why do we care to revert the patch on the container?
It's clear that we need to cleanup NADs, which belong to the namespace, but security context and annotations belong to the container we're removing.
We are not necessarily removing the statefulset. If you scale the unit down to 0, and then scale it back up, this prevents the pod from restarting as the annotations cannot be satisfied and Juju loses control of the pod, resulting in the need for |
Ups :D |
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 besides the nitpick on the unit test name
On remove event, the library needs to also remove the networks annotation, and drop privileges
Description
Please include a summary of the change. Please also include relevant motivation and context. List any dependencies that are required for this change.
Checklist: