Skip to content

Commit 8104af9

Browse files
committed
changed back to yaml
1 parent 1e5175b commit 8104af9

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

content/en/docs/reference/access-authn-authz/extensible-admission-controllers.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -261,17 +261,12 @@ serialized to JSON as the body.
261261
Webhooks can specify what versions of `AdmissionReview` objects they accept
262262
with the `admissionReviewVersions` field in their configuration:
263263

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"]
275270
```
276271

277272
`admissionReviewVersions` is a required field when creating webhook configurations.

0 commit comments

Comments
 (0)