k3s/federation/apis/core
Tim Hockin 7efb2d4738 Always emit autoConvert funcs, but call for help
Previously we refused to emit 'autoConvert_*' functions if any field was not
convertible.  The way around this was to write manual Conversion functions, but
to do so safely you must handle every fields.  Huge opportunity for errors.

This PR cleans up the filtering such that it only operates on types that should
be converted (remove a lot of code) and tracks when fields are skipped.  In
that case, it emits an 'autoConvert' function but not a public 'Convert'
function.  If there is no manual function, the compile will fail.

This also means that manual conversion functions can call autoConvert functions
and then "patch up" what they need.
2016-09-26 20:07:54 -07:00
..
install remove dead mapper 2016-09-19 09:57:19 -04:00
v1 Always emit autoConvert funcs, but call for help 2016-09-26 20:07:54 -07:00
conversion.go fix register.go files up + add test import 2016-08-11 17:06:54 -07:00
defaults.go fix register.go files up + add test import 2016-08-11 17:06:54 -07:00
register.go Typos and englishify federation 2016-09-09 09:53:24 +02:00