forked from rook/rook
If a deployment stays in pending we should give early by looking at ProgressDeadlineExceeded, this will reduce the time to wait from 20 min to 10 min because ProgressDeadlineExceeded default is 600 seconds. Prior to this patch we would wait 20min since we take currentDeployment.Spec.ProgressDeadlineSeconds which is typically 600 then retry every 2 seconds, which makes it 20min total. Closes: https://github.com/rook/rook/issues/5090 Signed-off-by: Sébastien Han <seb@redhat.com>