You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-api-machinery/2885-server-side-unknown-field-validation/README.md
+30-32Lines changed: 30 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,11 +313,9 @@ client-side validation, albeit one that is error-prone and not officially
313
313
supported).
314
314
315
315
Long-term, we want to favor using out-of-tree solutions for client-side
316
-
validation, though this idea is still in its infancy.
317
-
318
-
The [kubeval](https://www.kubeval.com/) project is an example of an out-of-tree solution that does this, and
319
-
we will look into expanding its support of open API to v3, and investigate
320
-
whether it makes sense as a permanent solution to client-side validation.
316
+
validation. The [kubeconform](https://github.com/yannh/kubeconform) project is an example of an out-of-tree solution that does this, and
317
+
we recommend using this or similar tools to validate manifests offline going
318
+
forward.
321
319
322
320
##### Aligning json and yaml errors
323
321
@@ -615,6 +613,11 @@ It tests the cross product of all valid permutations along the dimensions of:
615
613
With field validation on by default in beta, we will modify
616
614
[test/e2e/kubectl/kubectl.go](https://github.com/kubernetes/kubernetes/blob/master/test/e2e/kubectl/kubectl.go) to ensure that kubectl defaults to using server side field validation and detects unknown/duplicate fields as expected.
617
615
616
+
[GA]
617
+
We will introduce field validation specific e2e/conformance tests to submit
618
+
requests directly against the API server for both built-in and custom resources
619
+
to test that duplicate and unknown fields are appropriately detected.
620
+
618
621
### Graduation Criteria
619
622
<!--
620
623
**Note:** *Not required until targeted at a release.*
@@ -655,29 +658,20 @@ Below are some examples to consider, in addition to the aforementioned [maturity
655
658
-[x] field validation integration tests check for exact match of strict errors
656
659
-[x] In tree NestedObjectDecoders no longer short circuit on strict decoding
-[] Unknown/Duplicate fields are properly detected in the metadata at both the
661
+
-[x] Unknown/Duplicate fields are properly detected in the metadata at both the
659
662
root level and within embedded objects
660
663
[#109215](https://github.com/kubernetes/kubernetes/issues/109215),[#109316](https://github.com/kubernetes/kubernetes/pull/109316), and
0 commit comments