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
Add validateMap() to compare maps correctly during OCI spec validation.
reflect.Equal() considers nil and empty maps/slices different. But from spec
validation perspective, they should be considered the same. So added
validateMap() generic utility to do the comparison correctly.
Also fixed the validation of spec.Process.Rlimits, which was an array of
structs. Apart from suffering from the said reflect.Equal() issue, it also
suffered from ordering comparison. A list of shuffled-but-same rlimits should
be restorable. Fixed it to use validateArray().
There were only 2 users of `validateStructMap` remaining. So removed it
switched its users to call validateStruct() directly.
Fixes#11248
PiperOrigin-RevId: 703302621
0 commit comments