Hello,
Patch
https://github.com/kubernetes/kubernetes/pull/74111 adds a feature flag to enable Strict decoding to `runtime.serializer.json`.
Some efforts in Component-Standard WG desire a simple constructor for UniversalDecoders that support Strict behavior.
UniversalDecoders are currently implemented in CodecFactory, but some conversations /w liggit, luxas, and neolit123 about the future of Strict behavior being default (not featureflagged) in apimachinery have set some direction to implement NewUniversalStrictDecoder as a constructor in a separate package.
I've started implementing this in
https://github.com/kubernetes/kubernetes/pull/76303 (tests todo), but the implementation requires code duplication from CodecFactory.
I'd appreciate some opinions about how to structure this.
One solution may be to add some features to CodecFactory that we could later deprecate as Strict behavior becomes default.
I've left more detail on the patch.
Cheers.