code: func BuildConfigFromKubeconfigGetter(masterUrl string, kubeconfigGetter KubeconfigGetter) (*restclient.Config, error) {
  	// TODO: We do not need a DeferredLoader here. Refactor code and see if we can use DirectClientConfig here.
  	cc := NewNonInteractiveDeferredLoadingClientConfig(
  		&ClientConfigGetter{kubeconfigGetter: kubeconfigGetter},
  		&ConfigOverrides{ClusterInfo: clientcmdapi.Cluster{Server: masterUrl}})
  	return cc.ClientConfig()
  }
docs: // BuildConfigFromKubeconfigGetter is a helper function that builds configs from a master
  // url and a kubeconfigGetter.