From 225c47dbbc7eb27a3170185a931e97660beabc45 Mon Sep 17 00:00:00 2001 From: chris93111 Date: Thu, 6 Oct 2022 13:21:52 +0200 Subject: [PATCH] fix templating config indent the comment and remove last - --- roles/installer/templates/configmaps/config.yaml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/installer/templates/configmaps/config.yaml.j2 b/roles/installer/templates/configmaps/config.yaml.j2 index 05886a52..ee83776b 100644 --- a/roles/installer/templates/configmaps/config.yaml.j2 +++ b/roles/installer/templates/configmaps/config.yaml.j2 @@ -46,8 +46,8 @@ data: {%- set cpu_limit = task_resource_requirements["limits"]["cpu"] if "limits" in task_resource_requirements and "cpu" in task_resource_requirements["limits"] -%} {%- if cpu_limit is defined -%} {%- set callback_receiver_cpu = cpu_limit | cpu_string_to_decimal -%} -{%- if callback_receiver_cpu |int > 4 -%} -# Set callback receiver workers based off cpu limit, default workers are 4, but if we have more than 4 cpu we can set higher value for workers +{%- if callback_receiver_cpu |int > 4 %} + # Set callback receiver workers based off cpu limit, default workers are 4, but if we have more than 4 cpu we can set higher value for workers JOB_EVENT_WORKERS = {{ callback_receiver_cpu }} {%- endif -%} {%- endif %}