mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Use the correct time field to estimate progress in deployments
This commit is contained in:
		| @@ -844,7 +844,7 @@ func DeploymentTimedOut(deployment *extensions.Deployment, newStatus *extensions | ||||
| 	// Look at the difference in seconds between now and the last time we reported any | ||||
| 	// progress or tried to create a replica set, or resumed a paused deployment and | ||||
| 	// compare against progressDeadlineSeconds. | ||||
| 	from := condition.LastTransitionTime | ||||
| 	from := condition.LastUpdateTime | ||||
| 	delta := time.Duration(*deployment.Spec.ProgressDeadlineSeconds) * time.Second | ||||
| 	return from.Add(delta).Before(nowFn()) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michail Kargakis
					Michail Kargakis