1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

add to-do comments

This commit is contained in:
shivdudhani 2019-06-03 10:36:40 -07:00
parent b59ab9a84a
commit f5d9b039ec

View file

@ -300,6 +300,8 @@ func (c *Client) getGVR(resource string) schema.GroupVersionResource {
return emptyGVR
}
//To-do: measure performance
//To-do: evaluate DefaultRESTMapper to fetch kind->resource mapping
func (c *Client) getGVRFromKind(kind string) schema.GroupVersionResource {
emptyGVR := schema.GroupVersionResource{}
serverresources, err := c.cachedClient.ServerPreferredResources()