@jkcfg/kubernetes
Version:
jk Kubernetes library
39 lines • 1.49 kB
JSON
{
"description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.",
"properties": {
"nonResourceURLs": {
"description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.",
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"x-kubernetes-list-type": "set"
},
"verbs": {
"description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.",
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"x-kubernetes-list-type": "set"
}
},
"required": [
"verbs",
"nonResourceURLs"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}