Skip to content

Commit

Permalink
Promote CRD validation rules to GA
Browse files Browse the repository at this point in the history
  • Loading branch information
cici37 committed Nov 14, 2023
1 parent 4efddf9 commit 3f8efec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ For a reference to old feature gates that are removed, please refer to
| `CronJobsScheduledAnnotation` | `true` | Beta | 1.28 | |
| `CrossNamespaceVolumeDataSource` | `false` | Alpha| 1.26 | |
| `CustomCPUCFSQuotaPeriod` | `false` | Alpha | 1.12 | |
| `CustomResourceValidationExpressions` | `false` | Alpha | 1.23 | 1.24 |
| `CustomResourceValidationExpressions` | `true` | Beta | 1.25 | |
| `DevicePluginCDIDevices` | `false` | Alpha | 1.28 | |
| `DisableCloudProviders` | `false` | Alpha | 1.22 | |
| `DisableKubeletCloudCredentialProviders` | `false` | Alpha | 1.23 | |
Expand Down Expand Up @@ -249,6 +247,9 @@ For a reference to old feature gates that are removed, please refer to
| `ComponentSLIs` | `true` | Beta | 1.27 | 1.28|
| `ComponentSLIs` | `true` | GA | 1.29 | - |
| `ConsistentHTTPGetHandlers` | `true` | GA | 1.25 | - |
| `CustomResourceValidationExpressions` | `false` | Alpha | 1.23 | 1.24 |
| `CustomResourceValidationExpressions` | `true` | Beta | 1.25 | 1.26 | 1.27 | 1.28 |
| `CustomResourceValidationExpressions` | `true` | GA | 1.29 | - |
| `DaemonSetUpdateSurge` | `false` | Alpha | 1.21 | 1.21 |
| `DaemonSetUpdateSurge` | `true` | Beta | 1.22 | 1.24 |
| `DaemonSetUpdateSurge` | `true` | GA | 1.25 | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -771,15 +771,7 @@ validations are not supported by ratcheting under the implementation in Kubernet

### Validation rules

{{< feature-state state="beta" for_k8s_version="v1.25" >}}


Validation rules are in beta since 1.25 and the `CustomResourceValidationExpressions`
[feature 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](/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).
{{< feature-state state="stable" for_k8s_version="v1.29" >}}

Validation rules use the [Common Expression Language (CEL)](https://github.com/google/cel-spec)
to validate custom resource values. Validation rules are included in
Expand Down

0 comments on commit 3f8efec

Please sign in to comment.