File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
content/en/docs/reference/access-authn-authz Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -261,17 +261,12 @@ serialized to JSON as the body.
261
261
Webhooks can specify what versions of `AdmissionReview` objects they accept
262
262
with the `admissionReviewVersions` field in their configuration :
263
263
264
- ` ` ` json
265
- {
266
- "apiVersion": "admissionregistration.k8s.io/v1",
267
- "kind": "ValidatingWebhookConfiguration",
268
- "webhooks": [
269
- {
270
- "name": "my-webhook.example.com",
271
- "admissionReviewVersions": ["v1", "v1beta1"]
272
- }
273
- ]
274
- }
264
+ ` ` ` yaml
265
+ apiVersion: admissionregistration.k8s.io/v1
266
+ kind: ValidatingWebhookConfiguration
267
+ webhooks:
268
+ - name: my-webhook.example.com
269
+ admissionReviewVersions: ["v1", "v1beta1"]
275
270
` ` `
276
271
277
272
` admissionReviewVersions` is a required field when creating webhook configurations.
You can’t perform that action at this time.
0 commit comments