kueue
kueue copied to clipboard
Make LossLessDefaulter selective to only prevent dropping fields outside of schema (unmarshal strict solution).
What type of PR is this?
/kind feature
What this PR does / why we need it:
Make LossLessDefaulter
selective to only prevent dropping fields outside of schema (unmarshal strict solution).
Which issue(s) this PR fixes:
Fixes #3174
Special notes for your reviewer:
The reflection-based solution for prevent dropping fields outside of schema is quite complex. This is an alternative solution for #3186 using json.UnmarshalStrict()
. Thanks to @trasc for the idea.
Does this PR introduce a user-facing change?
NONE