Make conversion and encoding handle nested runtime.Objects
Use runtime.NestedObjects(En|De)code to load the objects, and then use
the new GroupVersioner to get access to the correct conversion.
For now, return an error if the versioner is not available. Some types
may wish to relax that in the future.
@@ -47,30 +47,3 @@ func addKnownTypes(scheme *runtime.Scheme) {
&ClusterRoleList{},
)
}
-
-func (obj *ClusterRoleList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ClusterRoleBindingList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ClusterPolicyBindingList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ClusterPolicyList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ClusterPolicyBinding) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ClusterPolicy) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ClusterRoleBinding) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ClusterRole) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-
-func (obj *IsPersonalSubjectAccessReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *SubjectAccessReviewResponse) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ResourceAccessReviewResponse) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *LocalSubjectAccessReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *LocalResourceAccessReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *SubjectAccessReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *ResourceAccessReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *SelfSubjectRulesReview) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-
-func (obj *RoleList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *RoleBindingList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *PolicyBindingList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *PolicyList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *PolicyBinding) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *Policy) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *RoleBinding) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
-func (obj *Role) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
