Merge pull request #319 from rickypai/patch-1

Fix secrets examples to be valid json
pull/363/head
johndmulhausen 2016-04-11 14:12:41 -07:00
commit 56e0556bc4
1 changed files with 19 additions and 18 deletions

View File

@ -521,15 +521,15 @@ one called, say, `prod-user` with the `prod-db-secret`, and one called, say,
```json ```json
{ {
"kind": "Pod", "kind": "Pod",
"apiVersion": "v1", "apiVersion": "v1",
"metadata": { "metadata": {
"name": "prod-db-client-pod", "name": "prod-db-client-pod",
"labels": { "labels": {
"name": "prod-db-client" "name": "prod-db-client"
} }
}, },
"spec": { "spec": {
"serviceAccount": "prod-db-client", "serviceAccount": "prod-db-client",
"containers": [ "containers": [
{ {
@ -537,6 +537,7 @@ one called, say, `prod-user` with the `prod-db-secret`, and one called, say,
"image": "myClientImage" "image": "myClientImage"
} }
] ]
}
} }
``` ```
@ -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",