From a8d2c91b33e7865ed6a8bbb91adbce39f6f077ea Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Thu, 6 Jun 2024 12:49:00 +0200 Subject: [PATCH] Cast manage_replicas to bool --- roles/installer/templates/deployments/task.yaml.j2 | 4 ++-- roles/installer/templates/deployments/web.yaml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/installer/templates/deployments/task.yaml.j2 b/roles/installer/templates/deployments/task.yaml.j2 index 66310328c..03f7dfaa8 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 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: diff --git a/roles/installer/templates/deployments/web.yaml.j2 b/roles/installer/templates/deployments/web.yaml.j2 index 1d5155932..c62d7a8d5 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 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: