Skip to content

Commit

Permalink
Do not wait when scaling to 0
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <[email protected]>
  • Loading branch information
scholzj committed May 4, 2023
1 parent db5a162 commit c4793bf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public Future<Integer> scaleDown(Reconciliation reconciliation, String namespace
while (nextReplicas > scaleTo) {
nextReplicas--;
LOGGER.infoCr(reconciliation, "Scaling down from {} to {}", nextReplicas + 1, nextReplicas);
resource(namespace, name).scale(nextReplicas, true);
// When scaling to 0, we cannot wait for it because of https://github.com/fabric8io/kubernetes-client/issues/5102
resource(namespace, name).scale(nextReplicas, nextReplicas != 0);
}
}
future.complete(nextReplicas);
Expand Down

0 comments on commit c4793bf

Please sign in to comment.