summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hockin <thockin@google.com>2015-02-23 10:57:51 -0800
committerTim Hockin <thockin@google.com>2015-02-23 12:40:06 -0800
commitdee17e393e2937729a784b34b96fd4418e046f24 (patch)
treed7ef4f8602d8a179f794a9def74d781553a4613d
parent0d339383f4c17664472df0eb03289161062bda11 (diff)
comments on base64-ness of secrets
-rw-r--r--secrets.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/secrets.md b/secrets.md
index ac8776bd..dc596183 100644
--- a/secrets.md
+++ b/secrets.md
@@ -273,7 +273,8 @@ type Secret struct {
ObjectMeta
// Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN.
- // The serialized form of the secret data is a base64 encoded string.
+ // The serialized form of the secret data is a base64 encoded string,
+ // representing the arbitrary (possibly non-string) data value here.
Data map[string][]byte `json:"data,omitempty"`
// Used to facilitate programatic handling of secret data.
@@ -398,8 +399,9 @@ To create a pod that uses an ssh key stored as a secret, we first need to create
}
```
-**Note:** The values of secret data are encoded as base64-encoded strings. Newlines are not
-valid within these strings and must be omitted.
+**Note:** The serialized JSON and YAML values of secret data are encoded as
+base64 strings. Newlines are not valid within these strings and must be
+omitted.
Now we can create a pod which references the secret with the ssh key and consumes it in a volume: