Skip to content

Commit 571ff6f

Browse files
nikhitaMisty Stanley-Jones
authored andcommitted
Update CRD Subresources for 1.11
1 parent d0a77eb commit 571ff6f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

content/en/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,15 @@ crontab "my-new-cron-object" created
333333
### Subresources
334334

335335
Custom resources support `/status` and `/scale` subresources.
336-
This feature is __alpha__ in v1.10 and may change in backward incompatible ways.
336+
This feature is __beta__ in v1.11 and enabled by default.
337337

338-
Enable this feature using the `CustomResourceSubresources` feature gate on
338+
You can disable this feature using the `CustomResourceSubresources` feature gate on
339339
the [kube-apiserver](/docs/admin/kube-apiserver):
340340

341341
```
342-
--feature-gates=CustomResourceSubresources=true
342+
--feature-gates=CustomResourceSubresources=false
343343
```
344344

345-
When the `CustomResourceSubresources` feature gate is enabled, only the `properties` construct
346-
is allowed in the root schema for custom resource validation.
347-
348345
The status and scale subresources can be optionally enabled by
349346
defining them in the CustomResourceDefinition.
350347

@@ -357,6 +354,7 @@ When the status subresource is enabled, the `/status` subresource for the custom
357354
- `PUT` requests to the `/status` subresource only validate the status stanza of the custom resource.
358355
- `PUT`/`POST`/`PATCH` requests to the custom resource ignore changes to the status stanza.
359356
- Any changes to the spec stanza increments the value at `.metadata.generation`.
357+
- `Properties` and `Required` are the only constructs allowed in the root of the CRD OpenAPI validation schema.
360358

361359
#### Scale subresource
362360

0 commit comments

Comments
 (0)