Adjust yaml indentation on allowedHostPaths example (#27731)

* Adjust yaml indentation on allowedHostPaths

allowedHostPaths is an attribute inside spec: of PSP, so the sample needs to be shifted to match the YAML.

* Adjusted the PSP example allowedHostPaths coments

Adjusted the whole example (including the #coments)
pull/28366/head
Bruno Gabriel da Silva 2021-06-10 02:37:26 +01:00 committed by GitHub
parent 36a464b5f4
commit 0295ca4f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -464,12 +464,12 @@ allowed prefix, and a `readOnly` field indicating it must be mounted read-only.
For example: For example:
```yaml ```yaml
allowedHostPaths: allowedHostPaths:
# This allows "/foo", "/foo/", "/foo/bar" etc., but # This allows "/foo", "/foo/", "/foo/bar" etc., but
# disallows "/fool", "/etc/foo" etc. # disallows "/fool", "/etc/foo" etc.
# "/foo/../" is never valid. # "/foo/../" is never valid.
- pathPrefix: "/foo" - pathPrefix: "/foo"
readOnly: true # only allow read-only mounts readOnly: true # only allow read-only mounts
``` ```
{{< warning >}}There are many ways a container with unrestricted access to the host {{< warning >}}There are many ways a container with unrestricted access to the host