Skip to content

Commit 0295ca4

Browse files
authored
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)
1 parent 36a464b commit 0295ca4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/en/docs/concepts/policy/pod-security-policy.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,12 @@ allowed prefix, and a `readOnly` field indicating it must be mounted read-only.
464464
For example:
465465

466466
```yaml
467-
allowedHostPaths:
468-
# This allows "/foo", "/foo/", "/foo/bar" etc., but
469-
# disallows "/fool", "/etc/foo" etc.
470-
# "/foo/../" is never valid.
471-
- pathPrefix: "/foo"
472-
readOnly: true # only allow read-only mounts
467+
allowedHostPaths:
468+
# This allows "/foo", "/foo/", "/foo/bar" etc., but
469+
# disallows "/fool", "/etc/foo" etc.
470+
# "/foo/../" is never valid.
471+
- pathPrefix: "/foo"
472+
readOnly: true # only allow read-only mounts
473473
```
474474
475475
{{< warning >}}There are many ways a container with unrestricted access to the host

0 commit comments

Comments
 (0)