// ToRESTConfig calls the underlying RESTClientGetter and adds the user agent to the rest config.
ToRESTConfig calls the underlying RESTClientGetter and adds the user agent to the rest config.
// ToRESTConfig calls the underlying RESTClientGetter and adds the user agent to the rest config .
func (r userAgentGetter) ToRESTConfig() (*rest.Config, error) {
	rc, err := r.RESTClientGetter.ToRESTConfig()
	if err != nil {
		return nil, err
	}
	rc.UserAgent = r.userAgent
	return rc, nil
}
func ( r userAgentGetter ) ToRESTConfig ( ) ( * rest . Config , error ) { rc , err := r . RESTClientGetter . ToRESTConfig ( ) if err != nil { return nil , err } rc . UserAgent = r . userAgent return rc , nil }
ToRESTConfig calls the underlying RESTClientGetter and adds the user agent to the rest config.
ToRESTConfig calls the underlying RESTClientGetter and adds the user agent to the rest config .