← Back to News

Kubernetes v1.36: Declarative Validation Graduates to GA

If you’ve ever deployed a Kubernetes manifest and gotten a cryptic validation error, you’ve encountered the limitations of the old way Kubernetes validates your resources. With Kubernetes v1.36, Declarative Validation—a feature that’s been in beta for a while—has now reached General Availability. This might sound like an internal implementation detail, but it’s actually a meaningful shift in how Kubernetes handles validation, and it matters if you’re building reliable infrastructure.

Here’s what’s changed under the hood: traditionally, Kubernetes validation rules for native resources (like Pods, Services, and Deployments) were hardcoded directly into the API server using Go. This approach works, but it’s rigid and difficult to extend. Declarative Validation moves these rules into a declarative format called Common Expression Language (CEL) rules, which are stored alongside the resource definitions themselves. Think of it as shifting from validation logic buried in source code to validation rules that live in your OpenAPI schema. For you as a user, this means validation errors become clearer and more consistent across different tools. Instead of mysterious rejection messages, you’ll see exactly which field violated which rule and why. The validation rules are also now documented as part of the API spec, so tools like kubectl and the Kubernetes dashboard can surface that information directly.

The practical benefits extend beyond better error messages. Since validation rules are now declarative and API-accessible, ecosystem tools like Kubebuilder can read and integrate with them programmatically. This enables smarter IDE plugins, better form generators for UI-based cluster management, and more reliable policy enforcement across your organization. For example, if your company requires that all Deployments have resource requests and limits defined, that validation rule can now be inspected programmatically rather than documented in a wiki page that gets outdated. Platform teams using tools like Kyverno or other policy engines will find integration simpler and more reliable.

For most users, the GA status means you can depend on Declarative Validation for production workloads without hesitation. If you’re managing Kubernetes clusters at scale or building custom tooling around the API, this is worth exploring—check the validation rules in your resource schemas and consider how clearer, machine-readable validation could improve your deployment pipelines. It’s one of those foundational improvements that doesn’t make headlines but quietly makes your Kubernetes experience more predictable and less frustrating.

Source
↗ Kubernetes Blog