Merge pull request #6549 from perher/no-wait-paused-v3

Skip waiting for paused deployments
pull/6563/head
Taylor Thomas 5 years ago committed by GitHub
commit 3cc0240d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save