From 590b75ac231e0105c3779726bf0e30e6ab9b9723 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 19 Mar 2023 14:01:19 +0100 Subject: [PATCH] Add quotes to token-usage for special chars --- kubernetes/templates/k3s/agent/config.yaml.jinja2 | 2 +- kubernetes/templates/k3s/server/config.yaml.jinja2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/templates/k3s/agent/config.yaml.jinja2 b/kubernetes/templates/k3s/agent/config.yaml.jinja2 index 0507054..3900243 100644 --- a/kubernetes/templates/k3s/agent/config.yaml.jinja2 +++ b/kubernetes/templates/k3s/agent/config.yaml.jinja2 @@ -1,5 +1,5 @@ server: https://{{ kubernetes.control_plane.dns_name }}:6443 -token: {{ kubernetes.token }} +token: '{{ kubernetes.token }}' {% if nodeip_ipv6 != "" and kubernetes.ipPool.ipv6 is defined %} node-ip: {{ nodeip_ipv4 }},{{ nodeip_ipv6 }} diff --git a/kubernetes/templates/k3s/server/config.yaml.jinja2 b/kubernetes/templates/k3s/server/config.yaml.jinja2 index e57e4a4..4ea7d95 100644 --- a/kubernetes/templates/k3s/server/config.yaml.jinja2 +++ b/kubernetes/templates/k3s/server/config.yaml.jinja2 @@ -6,7 +6,7 @@ cluster-init: true server: https://{{ groups['kubernetes'][0] }}:6443 {% endif %} -token: {{ kubernetes.token }} +token: '{{ kubernetes.token }}' tls-san: - {{ kubernetes.control_plane.dns_name }}