|
|
|
@ -69,6 +69,10 @@ func (w *waiter) waitForResources(created ResourceList) error {
|
|
|
|
|
if err != nil {
|
|
|
|
|
return false, err
|
|
|
|
|
}
|
|
|
|
|
// If paused deployment will never be ready
|
|
|
|
|
if currentDeployment.Spec.Paused {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
// Find RS associated with deployment
|
|
|
|
|
newReplicaSet, err := deploymentutil.GetNewReplicaSet(currentDeployment, w.c.AppsV1())
|
|
|
|
|
if err != nil || newReplicaSet == nil {
|
|
|
|
@ -82,6 +86,10 @@ func (w *waiter) waitForResources(created ResourceList) error {
|
|
|
|
|
if err != nil {
|
|
|
|
|
return false, err
|
|
|
|
|
}
|
|
|
|
|
// If paused deployment will never be ready
|
|
|
|
|
if currentDeployment.Spec.Paused {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
// Find RS associated with deployment
|
|
|
|
|
newReplicaSet, err := deploymentutil.GetNewReplicaSet(currentDeployment, w.c.AppsV1())
|
|
|
|
|
if err != nil || newReplicaSet == nil {
|
|
|
|
@ -95,6 +103,10 @@ func (w *waiter) waitForResources(created ResourceList) error {
|
|
|
|
|
if err != nil {
|
|
|
|
|
return false, err
|
|
|
|
|
}
|
|
|
|
|
// If paused deployment will never be ready
|
|
|
|
|
if currentDeployment.Spec.Paused {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
// Find RS associated with deployment
|
|
|
|
|
newReplicaSet, err := deploymentutil.GetNewReplicaSet(currentDeployment, w.c.AppsV1())
|
|
|
|
|
if err != nil || newReplicaSet == nil {
|
|
|
|
@ -108,6 +120,10 @@ func (w *waiter) waitForResources(created ResourceList) error {
|
|
|
|
|
if err != nil {
|
|
|
|
|
return false, err
|
|
|
|
|
}
|
|
|
|
|
// If paused deployment will never be ready
|
|
|
|
|
if currentDeployment.Spec.Paused {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
// Find RS associated with deployment
|
|
|
|
|
newReplicaSet, err := deploymentutil.GetNewReplicaSet(currentDeployment, w.c.AppsV1())
|
|
|
|
|
if err != nil || newReplicaSet == nil {
|
|
|
|
|