Skip to content

Commit f3dd081

Browse files
committed
Remove problematic backup volumesnapshots
[static] Signed-off-by: Oriol Muñoz <[email protected]>
1 parent cf9090c commit f3dd081

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cluster/scripts/node-backup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ function wait_for_pvc_backup() {
5656
break
5757
else
5858
(( i++ )) && (( i > WAIT_FOR_BACKUP_RETRIES )) && {
59-
# kubectl delete volumesnapshot -n "$namespace" "$backupName";
59+
# remove the finalizers to allow fully deleting them
60+
kubectl patch -n "$namespace" volumesnapshot "$pvc_name" -p '{"metadata":{"finalizers": []}}' --type=merge
61+
kubectl delete volumesnapshot -n "$namespace" "$backupName";
6062
_error "Timed out waiting for backup of $description PVC";
6163
}
6264
sleep 5

0 commit comments

Comments
 (0)