Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete all PVCs if guest cluster is deleted in Rancher
If a cluster is deleted, the PVCs of the workloads are not deleted in Harvester. This is because the node driver does not know why the associated VM has to be deleted, e.g. because its parameters have changed or because the cluster is deleted. To solve the problem, a finalizer on the Machine resource in Rancher will add an annotation to the VM which then is evaluated by the node driver when it running the Remove() handler. Signed-off-by: Volker Theile <vtheile@suse.com>
- Loading branch information