The Wire · Showcase
DECLARATIVE VALIDATION GOES STABLE AS CODE-GENERATOR HARDENS VALIDATION PIPELINE
By RepoJournal · Filed · About Kubernetes
Kubernetes code-generator just promoted ten validation tags to stable, tightening the screws on object validation across the entire API ecosystem while silencing previously invisible validation failures.
The validation-gen overhaul [1] marks a significant maturity milestone for declarative validation in Kubernetes, moving eachKey, eachVal, ifEnabled, ifDisabled, immutable, maxBytes, unique, customUnique, update, and mode discriminators from beta to stable per KEP-5073 [2]. This follows two critical hardening changes: the code-generator now surfaces undeclared declarative-validation options as hard errors instead of silently disabling them [3], and the eachKey tag documentation was corrected to properly describe map keys rather than values [4]. The component-helpers repo merged a fix for pod resource footprint overestimation in multi-container resize scenarios [5], directly improving accuracy of scheduling decisions under the new validation regime. Meanwhile, k8s.io image promotion continues steady cadence with cloud-provider-gcp (v36.1.11/v36.2.4) and build-image (v0.8.14/v0.9.6) moving through staging [6] [7], and prow receives a bulk update across eleven service images [8]. Dependency bumps across the release and node-problem-detector repos are routine [9] [10].
Action items
- → Review declarative validation usage in your CRDs before next minor release - silent failures are now explicit errors kubernetes/code-generator [plan]
- → Audit object validation tags against the stable promotions to ensure compatibility with KEP-5073 kubernetes/kubernetes [monitor]
- → Test pod scheduling with updated component-helpers resource footprint calculations in dev environments kubernetes/component-helpers [plan]
References
- [1] Merge pull request #140555 from yongruilin/dv-tag-promote kubernetes/code-generator
- [2] Promote declarative validation tags to Stable kubernetes/code-generator
- [3] Merge pull request #140380 from yongruilin/dv-ifenabled-not-silent kubernetes/code-generator
- [4] Fix eachKey tag description kubernetes/code-generator
- [5] Merge pull request #140047 from natasha41575/ippr-bug kubernetes/component-helpers
- [6] Image promotion for cloud-provider-gcp v36.1.11 / v36.2.4 ↗ kubernetes/k8s.io
- [7] Image promotion for build-image v0.8.14 / v0.9.6 ↗ kubernetes/k8s.io
- [8] Update prow to v20260709-bcf4297e5 ↗ kubernetes/k8s.io
- [9] Bump github.com/cheggaaa/pb/v3 from 3.1.7 to 3.2.0 ↗ kubernetes/release
- [10] chore(deps): bump the actions-all group with 5 updates ↗ kubernetes/node-problem-detector