-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Provide a way to delete PV/PVCs #73
Comments
I see two distinct issues here:
For 2. I suggest the following:
|
@calind by the finalizer you mean annotation right? Also, in case of scale event shouldn't the replication still work? e.g. if a master is at 1000 and replica A is at 900 and replica B is added, the replication for A continues from 901 and from 1 for replica B. |
Me and @calind discussed and concluded that: we have to simplify this issue by deleting PVC when scale-down only and move in a new issue the second part where a cluster is deleted. Steps to implement PVC deletion when scale down:
For the second part of this issue: can be done by adding a finalizer on the cluster resource and when the cluster is deleted to be scaled at 0 and when |
Closing this in favor of #136. |
* Update README to take us out of the pre-alpha stage Signed-off-by: avaidyanatha <avaidyanatha@ucsb.edu> * Update some language Signed-off-by: avaidyanatha <avaidyanatha@ucsb.edu> * Preview Signed-off-by: avaidyanatha <avaidyanatha@ucsb.edu>
Upon mysql cluster deletion, the associated PV/PVCs are left intact. This is problematic when testing mysql-operator by keeping mysql cluster name same.
If mysql cluster is created with same name again, old PVs are re-attached. This might be fine when restoring accidentally deleted cluster, but problematic with testing. When existing volumes are attached, the percona image startup scripts find old data directories and do not update passwords specified for the users with new mysql cluster.
I think one way of doing this is by specifying attributes which permit pv deletion along with mysql cluster.
The text was updated successfully, but these errors were encountered: