update CodecFor for GroupVersion

This commit is contained in:
deads2k
2015-12-08 13:49:38 -05:00
parent 7de177b8b5
commit 6e33403abf
25 changed files with 36 additions and 33 deletions

View File

@@ -306,7 +306,7 @@ func TestEncode(t *testing.T) {
scheme.AddInternalGroupVersion(internalGV)
scheme.AddKnownTypeWithName(internalGV.WithKind("Simple"), &InternalSimple{})
scheme.AddKnownTypeWithName(externalGV.WithKind("Simple"), &ExternalSimple{})
codec := runtime.CodecFor(scheme, externalGV.String())
codec := runtime.CodecFor(scheme, externalGV)
test := &InternalSimple{
TestString: "I'm the same",
}