Delete only cluster related volumes
Currently, in destroy.sh there is openstack volume delete
command, which deletes all volumes in the openstack project not only yk8s related ones.
It shouldn't be a problem to filter only cluster related volumes, because cinder csi plugin is responsible for creating them and it adds tag cinder.csi.openstack.org/cluster=<cluster name>
via --cluster <cluster name> argument to the Cinder volume metadata. In our case it is cinder.csi.openstack.org/cluster='kubernetes'
. It also adds volume description "Created by OpenStack Cinder CSI driver".
See cinder-csi-plugin openstack volume show
example.