mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Add generic "List" type for all versions
This commit is contained in:
@@ -80,6 +80,8 @@ func NewRESTMapper(groupResources []*APIGroupResources, versionInterfaces meta.V
|
|||||||
// TODO only do this if it supports listing
|
// TODO only do this if it supports listing
|
||||||
versionMapper.Add(gv.WithKind(resource.Kind+"List"), scope)
|
versionMapper.Add(gv.WithKind(resource.Kind+"List"), scope)
|
||||||
}
|
}
|
||||||
|
// TODO why is this type not in discovery (at least for "v1")
|
||||||
|
versionMapper.Add(gv.WithKind("List"), meta.RESTScopeRoot)
|
||||||
unionMapper = append(unionMapper, versionMapper)
|
unionMapper = append(unionMapper, versionMapper)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user