/
externaladmissionhook.json
39 lines (39 loc) · 1.64 KB
/
externaladmissionhook.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"$schema": "http://json-schema.org/schema#",
"required": [
"name",
"clientConfig"
],
"type": "object",
"description": "ExternalAdmissionHook describes an external admission webhook and the resources and operations it applies to.",
"properties": {
"rules": {
"items": {
"$ref": "https://raw.githubusercontent.com/garethr/kubernetes-json-schema/master/v1.7.8/_definitions.json#/definitions/io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.RuleWithOperations"
},
"type": [
"array",
"null"
],
"description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule."
},
"failurePolicy": {
"type": [
"string",
"null"
],
"description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore."
},
"clientConfig": {
"description": "ClientConfig defines how to communicate with the hook. Required",
"$ref": "https://raw.githubusercontent.com/garethr/kubernetes-json-schema/master/v1.7.8/_definitions.json#/definitions/io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.AdmissionHookClientConfig"
},
"name": {
"type": [
"string",
"null"
],
"description": "The name of the external admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required."
}
}
}