apimachinery: handle duplicated and conflicting type registration
This commit is contained in:
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
package rbac
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
@@ -55,6 +54,5 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
&ClusterRoleBindingList{},
|
||||
&ClusterRoleList{},
|
||||
)
|
||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user