kueue icon indicating copy to clipboard operation
kueue copied to clipboard

Make LossLessDefaulter selective to only prevent dropping fields outside of schema (unmarshal strict solution).

Open mbobrovskyi opened this issue 4 months ago • 14 comments

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

mbobrovskyi avatar Oct 07 '24 13:10 mbobrovskyi