Incluster access to sub clusters

As mention in Direct access to the Upstream Kubernetes Cluster API, we can access sub-cluster using rancher server endpoint. My question is:
if we have a client-go based controller run in master cluster, is it possible to access sub-cluster resource in similar way.

Thanks a lot in advanced!