mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-02 14:51:58 +00:00
Change runtime.Object signature
This commit is contained in:
@@ -39,5 +39,5 @@ func addKnownTypes() {
|
||||
&unversioned.ListOptions{})
|
||||
}
|
||||
|
||||
func (*TestType) IsAnAPIObject() {}
|
||||
func (*TestTypeList) IsAnAPIObject() {}
|
||||
func (obj *TestType) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||
func (obj *TestTypeList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||
|
||||
@@ -42,5 +42,5 @@ func addKnownTypes() {
|
||||
&unversioned.ListOptions{})
|
||||
}
|
||||
|
||||
func (*TestType) IsAnAPIObject() {}
|
||||
func (*TestTypeList) IsAnAPIObject() {}
|
||||
func (obj *TestType) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||
func (obj *TestTypeList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||
|
||||
Reference in New Issue
Block a user