Closed kuanfandevops closed 4 years ago
@cvarjao ^^^
@kuanfandevops, you can use similar strategy we are using for deleting ImageStreamTag
:
https://github.com/BCDevOps/bcdk/blob/master/generators/pipeline/templates/.pipeline/lib/clean.js#L28
Get all StatefulSet
related to the deployment/instance labels, and then delete all PVC related to that Statefulset using the statefulset
label as you already have it.
A Pull request would be very much appreciated!
@cvarjao received, will seek a spot in our newly started sprint to work on this
Create PR #86 for the code change
I added the following scripts to clean up rabbitmq storage for statefulset. By definition of statefulset, the storage of it needs to be remove specifically. So the clean up could be or could not be part of BCDK cleanup process.