From 20dae6ba4d569eb55479dbe291fb578f48af4029 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 17 Nov 2023 20:42:26 +0930 Subject: [PATCH] fix(node_labels): ensure correct indentation for label list !9 nofusscomputing/infrastructure/configuration-management/project-production!4 --- templates/k3s-config.yaml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/k3s-config.yaml.j2 b/templates/k3s-config.yaml.j2 index fc4e1d9..34e1d02 100644 --- a/templates/k3s-config.yaml.j2 +++ b/templates/k3s-config.yaml.j2 @@ -48,9 +48,9 @@ kubelet-arg: and kubernetes_config.hosts[inventory_hostname].labels | default([]) | list | length > 0 -%} -node-label: -{% for node_label in kubernetes_config.hosts[inventory_hostname].labels | dict2items %} +node-label: {%- for node_label in kubernetes_config.hosts[inventory_hostname].labels | dict2items +%} - {{ node_label.key }}={{ node_label.value }} + {%- endfor %} {%- endif %}