forked from garethr/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallowedhostpath.json
19 lines (19 loc) · 921 Bytes
/
allowedhostpath.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly."
},
"pathPrefix": {
"type": [
"string",
"null"
],
"description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`"
}
}
}