copr-be: don't start reserved instances on stage

While it is OK to start powerful on-demand instances on stage (upon
an explicit request), reserved instances are meant to be used by
production only.
This commit is contained in:
Pavel Raiskup 2023-11-06 09:10:48 +01:00
parent a0746f6663
commit 8c55a92abd

View file

@ -11,13 +11,15 @@
{% macro aws(arch, max, max_starting, max_prealloc, spot=False, on_demand=none, priority=0, reserved=False) %} {% macro aws(arch, max, max_starting, max_prealloc, spot=False, on_demand=none, priority=0, reserved=False) %}
aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot %}spot{% else %}normal{% endif %}{% if reserved %}reserved{% endif %}_{% if devel %}dev{% else %}prod{% endif %}: aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot %}spot{% else %}normal{% endif %}{% if reserved %}reserved{% endif %}_{% if devel %}dev{% else %}prod{% endif %}:
{% if not on_demand %} {% if on_demand %}
max: 10
max_starting: 1
{% elif reserved and devel %}
max: 0
{% else %}
max: {{ max }} max: {{ max }}
max_starting: {{ max_starting }} max_starting: {{ max_starting }}
max_prealloc: {{ max_prealloc }} max_prealloc: {{ max_prealloc }}
{% else %}
max: 10
max_starting: 1
{% endif %} {% endif %}
tags: tags:
- name: copr_builder - name: copr_builder