Skip to content

Commit

Permalink
Cast manage_replicas to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarrillocruz committed Jun 6, 2024
1 parent c696eda commit a8d2c91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions roles/installer/templates/deployments/task.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
{{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=4) | trim }}
spec:
{% if task_replicas != '' and task_manage_replicas is true %}
{% if task_replicas != '' and task_manage_replicas | bool is true %}
replicas: {{ task_replicas }}
{% elif replicas != '' and task_manage_replicas is true %}
{% elif replicas != '' and task_manage_replicas | bool is true %}
replicas: {{ replicas }}
{% endif %}
selector:
Expand Down
4 changes: 2 additions & 2 deletions roles/installer/templates/deployments/web.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ metadata:
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
{{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=4) | trim }}
spec:
{% if web_replicas != '' and web_manage_replicas is true %}
{% if web_replicas != '' and web_manage_replicas | bool is true %}
replicas: {{ web_replicas }}
{% elif replicas != '' and web_manage_replicas is true %}
{% elif replicas != '' and web_manage_replicas | bool is true %}
replicas: {{ replicas }}
{% endif %}
selector:
Expand Down

0 comments on commit a8d2c91

Please sign in to comment.