File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
keps/sig-api-machinery/2885-server-side-unknown-field-validation Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -542,11 +542,15 @@ server-side validation is enabled.
542
542
to ` Warn ` . It performs server-side validation, but validation errors are
543
543
exposed as warnings in the result header rather than failing the request.
544
544
545
+ We will introduce a mechanism similar to the cli-runtime
546
+ [ DryRunVerifier] ( https://github.com/kubernetes/cli-runtime/blob/cfe3fe3837db26e9afb75e9491348080a4f0ef23/pkg/resource/dry_run_verifier.go#L73:26 )
547
+ to read the server's published OpenAPI to determine whether or not server-side
548
+ validation is enabled on the server.
549
+
545
550
The goal here is for the flag to be intent based, whether we use client-side or
546
551
server-side under the hood is based solely on whether or not server-side
547
552
validation is supported by the apiserver kubectl is connected to.
548
553
549
-
550
554
### Test Plan
551
555
552
556
<!--
916
920
917
921
###### What steps should be taken if SLOs are not being met to determine the problem?
918
922
919
- Opt out of server-side validation if the performance impact of it is not
920
- tolerable.
923
+ Operators can disable server-side validation by setting the feature-gate to false if
924
+ the performance impact of it is not tolerable.
921
925
922
926
## Implementation History
923
927
You can’t perform that action at this time.
0 commit comments