Update doc for CustomResourceValidationExpressions feature.

pull/35029/head
Cici Huang 2022-07-14 20:25:40 +00:00
parent 2846caae8d
commit d6201fdf65
2 changed files with 8 additions and 4 deletions

View File

@ -89,7 +89,8 @@ different Kubernetes components.
| `CSIVolumeHealth` | `false` | Alpha | 1.21 | |
| `ContextualLogging` | `false` | Alpha | 1.24 | |
| `CustomCPUCFSQuotaPeriod` | `false` | Alpha | 1.12 | |
| `CustomResourceValidationExpressions` | `false` | Alpha | 1.23 | |
| `CustomResourceValidationExpressions` | `false` | Alpha | 1.23 | 1.24 |
| `CustomResourceValidationExpressions` | `true` | Beta | 1.25 | |
| `DelegateFSGroupToCSIDriver` | `false` | Alpha | 1.22 | 1.22 |
| `DelegateFSGroupToCSIDriver` | `true` | Beta | 1.23 | |
| `DevicePlugins` | `false` | Alpha | 1.8 | 1.9 |

View File

@ -718,11 +718,14 @@ crontab "my-new-cron-object" created
## Validation rules
{{< feature-state state="alpha" for_k8s_version="v1.23" >}}
{{< feature-state state="beta" for_k8s_version="v1.25" >}}
Validation rules are in alpha since 1.23 and validate custom resources when the
Validation rules are in beta since 1.25 and the
`CustomResourceValidationExpressions` [feature
gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled.
gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled by default to validate custom resource
based on _validation rules_. You can disable this feature by explicitly setting the
`CustomResourceValidationExpressions` feature gate to `false`,
for the `[kube-apiserver](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/)` component.
This feature is only available if the schema is a
[structural schema](#specifying-a-structural-schema).