From 05cd78593a2d7e1e9fe5cb591ba07e3a3bc3fbc9 Mon Sep 17 00:00:00 2001 From: graywolf-at-work <43144838+graywolf-at-work@users.noreply.github.com> Date: Tue, 2 Jun 2020 09:24:39 +0000 Subject: [PATCH] fix: Ensure kubeconfig ends with \n (#880) In order to be a text file according to POSIX, file needs to be composed of text lines. Text line is defined as sequence of characters ending in \n. Sadly, `~}` did strip everything including the \n, so the kubeconfing did not end with a new line. Output empty string at the end to make sure of it. --- templates/kubeconfig.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/kubeconfig.tpl b/templates/kubeconfig.tpl index ad1beec..a99a0df 100644 --- a/templates/kubeconfig.tpl +++ b/templates/kubeconfig.tpl @@ -35,4 +35,4 @@ users: - name: ${k} value: ${v} %{~ endfor ~} -%{ endif ~} +%{ endif }