-
Notifications
You must be signed in to change notification settings - Fork 440
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
Always delete pvc when tenant is deleted #268
Conversation
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.
Why not introduce the option right away and make it off by default, this behavior is dangerous, specially if undocumented, the default behavior in kubernetes for statefulset is not to delete the PVCs.
If we enable this behavior this way we also cause that we cannot upgrade the tenant resource in the future (migrate v1 to v2 for example) since that would trigger deletion of all the PVCs. We need a more comprehensive solution than this.
|
881ed42
to
c59fbd7
Compare
Example of removing owner reference:
|
4c8aeae
to
8c5c473
Compare
LGTM, minor questions |
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.
Few comments / questions
Add finalizer for tenant. Signed-off-by: Ritesh H Shukla <ritesh@minio.io>
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 👍
LGTM |
If we want to make this optional, we can add a new field in the CRD.