diff --git a/roles/installer/templates/deployments/task.yaml.j2 b/roles/installer/templates/deployments/task.yaml.j2 index 66310328c..72140f404 100644 --- a/roles/installer/templates/deployments/task.yaml.j2 +++ b/roles/installer/templates/deployments/task.yaml.j2 @@ -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 %} replicas: {{ task_replicas }} -{% elif replicas != '' and task_manage_replicas is true %} +{% elif replicas != '' and task_manage_replicas | bool %} replicas: {{ replicas }} {% endif %} selector: diff --git a/roles/installer/templates/deployments/web.yaml.j2 b/roles/installer/templates/deployments/web.yaml.j2 index 1d5155932..0e6f78a95 100644 --- a/roles/installer/templates/deployments/web.yaml.j2 +++ b/roles/installer/templates/deployments/web.yaml.j2 @@ -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 %} replicas: {{ web_replicas }} -{% elif replicas != '' and web_manage_replicas is true %} +{% elif replicas != '' and web_manage_replicas | bool %} replicas: {{ replicas }} {% endif %} selector: