Skip to content

Commit

Permalink
Also set component priority using MIN_REPLICAS
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Oct 4, 2021
1 parent c56aeaf commit de562e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bonfire/qontract.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ def _check_replace_other(other_params, this_params):
if other_replicas < 1 and this_replicas > 1:
return True

this_replicas = int(this_params.get("MIN_REPLICAS", 1))
other_replicas = int(other_params.get("MIN_REPLICAS", 1))
if other_replicas < 1 and this_replicas > 1:
return True

return False


Expand Down

0 comments on commit de562e4

Please sign in to comment.