Skip to content

syncPVC is not run if dataSourceRef is deleted #205

@pwschuurman

Description

@pwschuurman

If a PVC's dataSourceRef is deleted, syncPVC will exit early:

c.recorder.Eventf(pvc, corev1.EventTypeWarning, reasonDataSourceNotFound, "Data source %s/%s not found", dataSourceRefNamespace, dataSourceRef.Name)

This is fine is the PVC transfer is not yet complete, but if a partial transfer is in progress, this prevents cleanup of the PVC. The fix should be to check if a PVC is in Terminating status, and continue to reconcile towards deletion, even in the absence of a dataSourceRef.

Metadata

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