Fix retry for Unauthorized errors when migrating resources
@@ -911,6 +911,7 @@ func (m *MigrationController) applyResources(
}
}
+ }
// Retry a few times for Unauthorized errors
if err != nil && errors.IsUnauthorized(err) && retries < maxApplyRetries {
retries++
@@ -918,7 +919,6 @@ func (m *MigrationController) applyResources(
}
break
}
- }
if err != nil {
m.updateResourceStatus(
migration,
