You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DevWorkspace backup feature works correctly for workspaces with claim-devworkspace PVCs.
However, when a DevWorkspace has an empty template and no PVCs, the backup cron job fails with an error instead of completing successfully or skipping the backup gracefully.
{"level":"error","ts":"2025-12-31T15:52:00Z","logger":"controllers.BackupCronJob","msg":"Failed to get PVC for DevWorkspace","id":"workspacedffe6504447347e7","error":"PersistentVolumeClaim \"claim-devworkspace\" not found","stacktrace":"github.com/devfile/devworkspace-operator/controllers/backupcronjob.(*BackupCronJobReconciler).createBackupJob\n\t/devworkspace-operator/controllers/backupcronjob/backupcronjob_controller.go:367\n..."}
Description
The DevWorkspace backup feature works correctly for workspaces with
claim-devworkspacePVCs.However, when a DevWorkspace has an empty template and no PVCs, the backup cron job fails with an error instead of completing successfully or skipping the backup gracefully.
How To Reproduce
samples/empty.yamlExpected behavior
BackupCronJob should handle empty DevWorkspaces gracefully. Either: