Skip to content

Commit 72436df

Browse files
authored
Merge pull request #270 from openebs/fix-shrink-snippet
fix: add new shrink error snippet for k8s 1.32
2 parents 439d95e + 90fcc3b commit 72436df

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

common/mayastor/volume_resize/volume_resize.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ import (
1010
)
1111

1212
var (
13-
DefTimeoutSecs = 120 // in seconds
14-
DefSleepTime = 30 // in seconds
15-
DefFioCompletionTime = 420 // in seconds
16-
DefPollTimeSecs = 5 // in seconds
17-
InsufficientStorageError = "507 Insufficient Storage"
18-
PvcShrinkErrorSubString = " Forbidden: field can not be less than previous value"
19-
SnapshotVolumeResizeError = "Volume can't be resized while it has snapshots, or it's a snapshot restore"
13+
DefTimeoutSecs = 120 // in seconds
14+
DefSleepTime = 30 // in seconds
15+
DefFioCompletionTime = 420 // in seconds
16+
DefPollTimeSecs = 5 // in seconds
17+
InsufficientStorageError = "507 Insufficient Storage"
18+
PvcShrinkErrorSubString = " Forbidden: field can not be less than previous value"
19+
PvcShrinkErrorSubStringLatest = " Forbidden: field can not be less than status.capacity"
20+
SnapshotVolumeResizeError = "Volume can't be resized while it has snapshots, or it's a snapshot restore"
2021
)
2122

2223
// VerifyVolumeResize verify:

0 commit comments

Comments
 (0)