Change runtime.Object signature

This commit is contained in:
Clayton Coleman
2015-12-07 22:01:12 -05:00
parent 114f6f76dc
commit 8f203a28f1
64 changed files with 831 additions and 364 deletions

View File

@@ -26,14 +26,14 @@ import (
type FakeAPIObject struct{}
func (*FakeAPIObject) IsAnAPIObject() {}
func (obj *FakeAPIObject) GetObjectKind() unversioned.ObjectKind { return unversioned.EmptyObjectKind }
type ExtensionAPIObject struct {
unversioned.TypeMeta
ObjectMeta
}
func (*ExtensionAPIObject) IsAnAPIObject() {}
func (obj *ExtensionAPIObject) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
func TestGetReference(t *testing.T) {
table := map[string]struct {