From 01bde2cebb82b0fd1e2eb312771ce99f457a0876 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Thu, 6 Jun 2024 14:43:20 +0200 Subject: [PATCH] Cast manage_replicas to bool (#1893) --- 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..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: