mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
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.
This commit is contained in:
committed by
GitHub
parent
4e17230345
commit
4b5a3d2e5a
@@ -50,8 +50,8 @@ metadata:
|
|||||||
name: mysecret
|
name: mysecret
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
password: $(echo "s33msi4" | base64)
|
password: $(echo -n "s33msi4" | base64)
|
||||||
username: $(echo "jane" | base64)
|
username: $(echo -n "jane" | base64)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# TODO: kubectl-explain example
|
# TODO: kubectl-explain example
|
||||||
|
|||||||
Reference in New Issue
Block a user