Merge pull request #319 from rickypai/patch-1

Fix secrets examples to be valid json
This commit is contained in:
johndmulhausen
2016-04-11 14:12:41 -07:00
+4 -3
View File
@@ -538,6 +538,7 @@ one called, say, `prod-user` with the `prod-db-secret`, and one called, say,
} }
] ]
} }
}
``` ```
### Use-case: Dotfiles in secret volume ### Use-case: Dotfiles in secret volume
@@ -553,7 +554,7 @@ make that key begin with a dot. For example, when the following secret secret i
"name": "dotfile-secret" "name": "dotfile-secret"
}, },
"data": { "data": {
".secret-file": "dmFsdWUtMg0KDQo=", ".secret-file": "dmFsdWUtMg0KDQo="
} }
} }
@@ -561,7 +562,7 @@ make that key begin with a dot. For example, when the following secret secret i
"kind": "Pod", "kind": "Pod",
"apiVersion": "v1", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "secret-dotfiles-pod", "name": "secret-dotfiles-pod"
}, },
"spec": { "spec": {
"volumes": [ "volumes": [
@@ -576,7 +577,7 @@ make that key begin with a dot. For example, when the following secret secret i
{ {
"name": "dotfile-test-container", "name": "dotfile-test-container",
"image": "gcr.io/google_containers/busybox", "image": "gcr.io/google_containers/busybox",
"command": "ls -l /etc/secret-volume" "command": "ls -l /etc/secret-volume",
"volumeMounts": [ "volumeMounts": [
{ {
"name": "secret-volume", "name": "secret-volume",