From 4b5a3d2e5ac71762e48c9087540a50c255261b0e Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 18 Apr 2017 14:41:43 -0300 Subject: [PATCH] echo -n to avoid new lines at the end `echo blah | base64` will actually result in the base64 of `blah\n`, which will usually not be intended by the user. --- docs/user-guide/kubectl-cheatsheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user-guide/kubectl-cheatsheet.md b/docs/user-guide/kubectl-cheatsheet.md index 5726ff8c300..e5f4cc57f65 100644 --- a/docs/user-guide/kubectl-cheatsheet.md +++ b/docs/user-guide/kubectl-cheatsheet.md @@ -50,8 +50,8 @@ metadata: name: mysecret type: Opaque data: - password: $(echo "s33msi4" | base64) - username: $(echo "jane" | base64) + password: $(echo -n "s33msi4" | base64) + username: $(echo -n "jane" | base64) EOF # TODO: kubectl-explain example