Make DataVersionAndKind public on runtime.Scheme
Add a new ObjectTyper interface that clients can depend on for converting between data and object to version and kind.
This commit is contained in:
@@ -47,6 +47,9 @@ func TestScheme(t *testing.T) {
|
||||
scheme.AddKnownTypeWithName("", "Simple", &InternalSimple{})
|
||||
scheme.AddKnownTypeWithName("externalVersion", "Simple", &ExternalSimple{})
|
||||
|
||||
// test that scheme is an ObjectTyper
|
||||
var _ runtime.ObjectTyper = scheme
|
||||
|
||||
internalToExternalCalls := 0
|
||||
externalToInternalCalls := 0
|
||||
|
||||
|
Reference in New Issue
Block a user