func restClientFor(config *restConfig) (*url.URL, *http.Client, error) {
	// REMOVED: Configurable GroupVersion, Codec
	// REMOVED: Configurable versionedAPIPath
	baseURL, err := defaultServerURLFor(config)
	if err != nil {
		return nil, nil, err
	}

	transport, err := transportFor(config)
	if err != nil {
		return nil, nil, err
	}

	var httpClient *http.Client
	if transport != http.DefaultTransport {
		httpClient = &http.Client{Transport: transport}
	}

	// REMOVED: Configurable QPS, Burst, ContentConfig
	// REMOVED: Actually returning a RESTClient object.
	return baseURL, httpClient, nil
}
func restClientFor(config *restConfig) (*url.URL, *http.Client, error) {
	
	
	baseURL, err := defaultServerURLFor(config)
	if err != nil {
		return nil, nil, err
	}

	transport, err := transportFor(config)
	if err != nil {
		return nil, nil, err
	}

	var httpClient *http.Client
	if transport != http.DefaultTransport {
		httpClient = &http.Client{Transport: transport}
	}

	
	
	return baseURL, httpClient, nil
}
func restClientFor ( config * restConfig ) ( * url . URL , * http . Client , error ) { // REMOVED: Configurable GroupVersion, Codec // REMOVED: Configurable versionedAPIPath baseURL , err := defaultServerURLFor ( config ) if err != nil { return nil , nil , err } transport , err := transportFor ( config ) if err != nil { return nil , nil , err } var httpClient * http . Client if transport != http . DefaultTransport { httpClient = & http . Client { Transport : transport } } // REMOVED: Configurable QPS, Burst, ContentConfig // REMOVED: Actually returning a RESTClient object. return baseURL , httpClient , nil }
// restClientFor is a modified copy of k8s.io/kubernets/pkg/client/restclient.RESTClientFor.
// RESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config
// object. Note that a RESTClient may require fields that are optional when initializing a Client.
// A RESTClient created by this method is generic - it expects to operate on an API that follows
// the Kubernetes conventions, but may not be the Kubernetes API.
restClientFor is a modified copy of k8s . io / kubernets / pkg / client / restclient . RESTClientFor . RESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config object . Note that a RESTClient may require fields that are optional when initializing a Client . A RESTClient created by this method is generic - it expects to operate on an API that follows the Kubernetes conventions but may not be the Kubernetes API .