Skip to content

Commit

Permalink
Fix #792: adding references
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro authored and astefanutti committed Sep 18, 2019
1 parent 53ab079 commit 21cc250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/client/fastmapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var allowedAPIGroups = map[string]bool{
"rbac.authorization.k8s.io": true,
}

// newFastDiscoveryRESTMapper comes from https://github.com/kubernetes-sigs/controller-runtime/pull/592.
// We may leverage the controller-runtime bits in the future, if that gets merged upstream.
func newFastDiscoveryRESTMapper(config *rest.Config) meta.RESTMapper {
return meta.NewLazyRESTMapperLoader(func() (meta.RESTMapper, error) {
return newFastDiscoveryRESTMapperWithFilter(config, func(g *metav1.APIGroup) bool {
Expand Down

0 comments on commit 21cc250

Please sign in to comment.