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
parent
36a464b5f4
commit
0295ca4f9e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue