Skip waiting for paused deployments

Signed-off-by: Per Hermansson <perher1@gmail.com>
pull/6549/head
Per Hermansson 5 years ago
parent 37f7cc0851
commit f5e977b8ed

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