k8up-io / k8up

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

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

Closed johbo closed 1 month ago

johbo commented 1 month 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