Commit 30954373 authored by Michal Fojtik's avatar Michal Fojtik

Retry updating deployment only on update conflict error

parent 8f8e6205
......@@ -424,7 +424,11 @@ func (reaper *DeploymentReaper) updateDeploymentWithRetries(namespace, name stri
if deployment, err = deployments.Update(deployment); err == nil {
return true, nil
}
return false, nil
// Retry only on update conflict.
if errors.IsConflict(err) {
return false, nil
}
return false, err
})
return deployment, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment