Skip to content

Commit e28d78a

Browse files
committed
Cleanup snapshots before volumes
[1] accidentally swapped the cleanup order which represents a deviation to the previous behavior that not all CSI drivers may be able to handle. This change restores the original order. [1]: kubernetes-csi#261
1 parent 5f48a39 commit e28d78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sanity/resources.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ func (cl *Resources) Cleanup() {
248248
defer cl.mutex.Unlock()
249249
ctx := context.Background()
250250

251-
cl.deleteVolumes(ctx, 2)
252251
cl.deleteSnapshots(ctx, 2)
252+
cl.deleteVolumes(ctx, 2)
253253
}
254254

255255
func (cl *Resources) deleteVolumes(ctx context.Context, offset int) {

0 commit comments

Comments
 (0)