ptyin opened a new pull request, #21:
URL: https://github.com/apache/incubator-seata-k8s/pull/21

   Fixes #16 
   
   ## What this PR does?
   This PR aims to provide users choices for retain or delete volumes after 
deleting CRs. Users can use following configurations to control this behaviour.
   ```yaml
   # ...
   spec:
     # ...
     persistence:
       volumeReclaimPolicy: Delete  # Or "Retain"
   ```
   
   ## How so?
   Basically, I added finalizers to CR for controllers to implement 
asynchronous pre-delete hooks. In this pre-delete hook, I cleanup all binded 
PVCs and orphaned PVCs as well.
   
   See 
[https://book.kubebuilder.io/reference/using-finalizers](https://book.kubebuilder.io/reference/using-finalizers)
 to learn the context.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to