mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Rather than an "all or nothing" approach to defining a custom conversion
function (which seems destined to cause problems eventually), this is an
attempt to make it possible to call the auto-generated code and then "fix it
up".
Specifically, consider you have a fooBar struct. If you don't define a
conversion for FooBar, you will get a generated function like:
convert_v1_FooBar_To_api_FooBar()
Before this PR, if you define your own conversion function, you get no
generated function. After this PR you get:
autoconvert_v1_FooBar_To_api_FooBar()
...which you can call yourself in your custom function.
|
||
|---|---|---|
| .. | ||
| codec.go | ||
| conversion.go | ||
| conversion_generator.go | ||
| conversion_test.go | ||
| deep_copy_generator.go | ||
| doc.go | ||
| embedded_test.go | ||
| error.go | ||
| extension.go | ||
| extension_test.go | ||
| helper.go | ||
| helper_test.go | ||
| interfaces.go | ||
| scheme.go | ||
| scheme_test.go | ||
| swagger_doc_generator.go | ||
| swagger_doc_generator_test.go | ||
| types.go | ||
| unstructured.go | ||
| unstructured_test.go | ||