k8up-io / k8up

Kubernetes and OpenShift Backup Operator
https://k8up.io/
Apache License 2.0
717 stars 66 forks source link

Unmounted RWO PVCs without NodeAffinity on the PV should be backed up as well #980

Closed johbo closed 5 months ago

johbo commented 5 months ago

Summary

I did realize that k8up was skipping one of my volumes because it was not bound and had no NodeAffinity on its PVC. I believe this is wrong behavior, since RWO Volumes without NodeAffinity can be used on any Node. In my case I have RWO PVCs based on Rook Ceph, they have RWO semantics but have no restriction on the Node.

This change adds an integration test which describes the expected behavior and changes the code so that these volumes are included.

Checklist

For Code changes

For Helm Chart changes