From 29d81f7617d5f7c35fdbea8705f598c44abf9a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Masset?= Date: Sat, 11 Jun 2022 06:22:29 +0200 Subject: [PATCH] Aligned existing handling of extra DNS tolerations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Masset --- .../kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 b/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 index 270fbf18d..fa8106935 100644 --- a/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2 @@ -34,7 +34,7 @@ spec: effect: NoSchedule - key: node-role.kubernetes.io/control-plane effect: NoSchedule -{% if dns_extra_tolerations | default(None) %} +{% if dns_extra_tolerations is defined %} {{ dns_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }} {% endif %} affinity: