docs: Clarify use of the base64 utility

The base64 utility has different options on both Darwin and Linux.
Adding clarification as to how the use of these utilities differ
on platforms.
pull/357/head
Brian 'Redbeard' Harrington 2016-04-09 13:38:12 -07:00
parent 555874e182
commit e90337bf19
1 changed files with 5 additions and 3 deletions

View File

@ -124,9 +124,11 @@ $ kubectl create -f ./secret.yaml
secret "mysecret" created secret "mysecret" created
``` ```
**Encoding Note:** The serialized JSON and YAML values of secret data are encoded as **Encoding Note:** The serialized JSON and YAML values of secret data are
base64 strings. Newlines are not valid within these strings and must be encoded as base64 strings. Newlines are not valid within these strings and must
omitted (i.e. do not use `-b` option of `base64` which breaks long lines.) be omitted. When using the `base64` utility on Darwin/OS X users should avoid
using the `-b` option to split long lines. Conversely Linux users *should* add
the option `-w 0` to `base64` commands.
#### Decoding a Secret #### Decoding a Secret