We have to wait for the controller to observe our requested change
The deployer test was loading the RC of the previous version (which
was cancelled) and thus failing. We have to wait until the controller
sees our changes and assigns a latest version.
@@ -205,6 +205,9 @@ func GetDeploymentCondition(status appsv1.DeploymentConfigStatus, condType appsv
}
func deploymentReachedCompletion(dc *appsv1.DeploymentConfig, rcs []*corev1.ReplicationController, pods []corev1.Pod) (bool, error) {
+ if dc.Status.ObservedGeneration != dc.Generation {
+ return false, nil
+ }
if len(rcs) == 0 {
return false, nil
}
