Fix RunnerDeployment to be able to finish rollout (#1213)
I found that #1179 was unable to finish rollout of an RunnerDeployment update(like runner env update). It was able to create a new RunnerReplicaSet with the desired spec, but unable to tear down the older ones. This fixes that.
This commit is contained in:
parent
b83db7be8f
commit
adc889ce8a
|
|
@ -434,7 +434,6 @@ func syncRunnerPodsOwners(ctx context.Context, c client.Client, log logr.Logger,
|
|||
log.V(2).Info("BUG: Redundant object was already annotated")
|
||||
}
|
||||
}
|
||||
return nil, err
|
||||
} else if retained > newDesiredReplicas {
|
||||
log.V(2).Info("Waiting sync before scale down", "retained", retained, "newDesiredReplicas", newDesiredReplicas)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue