Tolerate multiple registered versions in a single group

This commit is contained in:
Jordan Liggitt
2016-03-11 11:41:18 -05:00
parent c9250bba2a
commit d008283942
9 changed files with 30 additions and 16 deletions

View File

@@ -232,7 +232,7 @@ func (g TestGroup) ResourcePath(resource, namespace, name string) string {
}
func (g TestGroup) RESTMapper() meta.RESTMapper {
return registered.GroupOrDie(g.externalGroupVersion.Group).RESTMapper
return registered.RESTMapper()
}
// Get codec based on runtime.Object