Skip to content

Commit 1ea8f96

Browse files
nikhitak8s-ci-robot
authored andcommitted
Update docs for fields allowed at root of CRD schema (#9973)
1 parent f8e4d35 commit 1ea8f96

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

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

+24-2
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,9 @@ The column's `format` controls the style used when `kubectl` prints the value.
447447

448448
### Subresources
449449

450+
{{< feature-state state="beta" for_kubernetes_version="1.11" >}}
451+
450452
Custom resources support `/status` and `/scale` subresources.
451-
This feature is __beta__ in v1.11 and enabled by default.
452453

453454
You can disable this feature using the `CustomResourceSubresources` feature gate on
454455
the [kube-apiserver](/docs/admin/kube-apiserver):
@@ -469,7 +470,28 @@ When the status subresource is enabled, the `/status` subresource for the custom
469470
- `PUT` requests to the `/status` subresource only validate the status stanza of the custom resource.
470471
- `PUT`/`POST`/`PATCH` requests to the custom resource ignore changes to the status stanza.
471472
- Any changes to the spec stanza increments the value at `.metadata.generation`.
472-
- `properties`, `required` and `description` are the only constructs allowed in the root of the CRD OpenAPI validation schema.
473+
- Only the following constructs are allowed at the root of the CRD OpenAPI validation schema:
474+
475+
- Description
476+
- Example
477+
- ExclusiveMaximum
478+
- ExclusiveMinimum
479+
- ExternalDocs
480+
- Format
481+
- Items
482+
- Maximum
483+
- MaxItems
484+
- MaxLength
485+
- Minimum
486+
- MinItems
487+
- MinLength
488+
- MultipleOf
489+
- Pattern
490+
- Properties
491+
- Required
492+
- Title
493+
- Type
494+
- UniqueItems
473495

474496
#### Scale subresource
475497

0 commit comments

Comments
 (0)