code: func newInClusterClient(endpoint string) (*clientWrapper, error) {
  	config, err := rest.InClusterConfig()
  	if err != nil {
  		return nil, fmt.Errorf("failed to create in-cluster configuration: %s", err)
  	}
  
  	if endpoint != "" {
  		config.Host = endpoint
  	}
  
  	return createClientFromConfig(config)
  }
docs: // newInClusterClient returns a new Provider client that is expected to run
  // inside the cluster.