Skip to content

Commit d4f473a

Browse files
Merge pull request #15124 from enj/enj/i/migrate_storage_not_found
Tolerate deletion of resources during migration
2 parents 565a1c0 + 94841d1 commit d4f473a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cmd/admin/migrate/migrator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,8 @@ func canRetry(err error) bool {
485485
// All other errors are left in their natural state - they will not be retried unless
486486
// they define a Temporary() method that returns true.
487487
func DefaultRetriable(info *resource.Info, err error) error {
488-
if err == nil {
488+
// tolerate the deletion of resources during migration
489+
if err == nil || errors.IsNotFound(err) {
489490
return nil
490491
}
491492
switch {

0 commit comments

Comments
 (0)