Backups that don't trigger any jobs are not marked as finished. Because they aren't marked as finished they are never cleaned up and accumulate endlessly on the cluster.
Additional Context
We automatically distribute a "default" k8up schedule to new namespaces on some of our clusters. If there's no PVCs (or BACKUP_SKIP_WITHOUT_ANNOTATION is true) and no other means of triggering a backup job (pods with k8up.io/backupcommand, prebackuppods etc.) the backup objects are created and never cleaned up. They accumulate endlessly.
Logs
No response
Expected Behavior
Backup objects that don't trigger any jobs should be marked as finished and cleaned up like regular finished backups.
Description
Backups that don't trigger any jobs are not marked as finished. Because they aren't marked as finished they are never cleaned up and accumulate endlessly on the cluster.
Additional Context
We automatically distribute a "default" k8up schedule to new namespaces on some of our clusters. If there's no PVCs (or
BACKUP_SKIP_WITHOUT_ANNOTATION
is true) and no other means of triggering a backup job (pods withk8up.io/backupcommand
, prebackuppods etc.) the backup objects are created and never cleaned up. They accumulate endlessly.Logs
No response
Expected Behavior
Backup objects that don't trigger any jobs should be marked as finished and cleaned up like regular finished backups.
Steps To Reproduce
Version of K8up
v2.11.1
Version of Kubernetes
v1.28
Distribution of Kubernetes
OpenShift 4.15