fix(k8s): Reinsert passLookup newline after kontemplate trims it

SSH can not read the key without the trailing newline. Ideally
kontemplate would expose a toggle for this.
This commit is contained in:
Vincent Ambo 2019-09-04 16:46:06 +01:00
parent b41be36bb7
commit 52fabe4423
2 changed files with 2 additions and 1 deletions

View file

@ -12,7 +12,7 @@ type: Opaque
data:
gcs-key.json: {{ passLookup "nixery-gcs-json" | b64enc }}
gcs-key.pem: {{ passLookup "nixery-gcs-pem" | b64enc }}
id_nixery: {{ passLookup "nixery-ssh-private" | b64enc }}
id_nixery: {{ printf "%s\n" (passLookup "nixery-ssh-private") | b64enc }}
id_nixery.pub: {{ insertFile "id_nixery.pub" | b64enc }}
known_hosts: {{ insertFile "known_hosts" | b64enc }}
ssh_config: {{ insertFile "ssh_config" | b64enc }}