Skip to content
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

Delete all PVCs if guest cluster is deleted in Rancher #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 6, 2024

  1. 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 <[email protected]>
    votdev committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    db728bb View commit details
    Browse the repository at this point in the history