You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2019/09/18 18:47:58 UTC

[camel-k] 02/04: Fix #792: adding references

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 21cc250695d773921b061b8ab8de347895664394
Author: nferraro <ni...@gmail.com>
AuthorDate: Wed Sep 18 13:24:47 2019 +0200

    Fix #792: adding references
---
 pkg/client/fastmapper.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkg/client/fastmapper.go b/pkg/client/fastmapper.go
index 2752953..2ce44bf 100644
--- a/pkg/client/fastmapper.go
+++ b/pkg/client/fastmapper.go
@@ -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 {