Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix DeepCopy to properly support runtime.EmbeddedObject #7769

Merged
merged 1 commit into from May 5, 2015

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented May 5, 2015

DeepCopy was failing on runtime.EmbeddedObject due to

unexpected error: gob: type not registered for interface: runtime_test.EmbeddedTest

See the new unit test for a simple scenario.

This registers our types with gob at the same time that we're registering them with the scheme. The gobName reads a little bit weird, but I've added a comment and linked to the go source that describes the problem (go reflection is hard).

@smarterclayton This is addresses one of the problems in the rebase.

@smarterclayton
Copy link
Contributor

LGTM

@smarterclayton smarterclayton added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 5, 2015
smarterclayton added a commit that referenced this pull request May 5, 2015
fix DeepCopy to properly support runtime.EmbeddedObject
@smarterclayton smarterclayton merged commit c30428a into kubernetes:master May 5, 2015
@deads2k deads2k deleted the fix-deep-copy branch June 11, 2015 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants