Skip to content

Implement DeletionGuard #214

Closed
Closed
@rmb938

Description

I have a use case where I do not want PVs to be deleted unless a certain annotation is set with a value of true.

This PR kubernetes-sigs/sig-storage-lib-external-provisioner#3 added the DeletionGuard interface so we should be able to use that.

I know that my use case is pretty specific but I figured the community would have some ideas on how to implement this in a generic way.

I currently have my CSI check the annotation when told to delete the volume and error if the annotation isn't set to true but doing it in the CSI seems wrong.

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions