Skip to content

Commit

Permalink
Ensure kubeconfig ends with \n
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
graywolf-at-work authored and Tomas Volf committed Jun 1, 2020
1 parent 3fefc2a commit a12c48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/kubeconfig.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ users:
- name: ${k}
value: ${v}
%{~ endfor ~}
%{ endif ~}
%{ endif }

0 comments on commit a12c48d

Please sign in to comment.