Fix secrets examples to be valid json
Working through the secrets example, I found some of the json descriptors to be invalid. This fixes them.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user