code: func (f *MatchVersionFlags) ToRESTConfig() (*rest.Config, error) {
  	if err := f.checkMatchingServerVersion(); err != nil {
  		return nil, err
  	}
  	clientConfig, err := f.Delegate.ToRESTConfig()
  	if err != nil {
  		return nil, err
  	}
  	// TODO we should not have to do this.  It smacks of something going wrong.
  	setKubernetesDefaults(clientConfig)
  	return clientConfig, nil
  }
docs: // ToRESTConfig implements RESTClientGetter.
  // Returns a REST client configuration based on a provided path
  // to a .kubeconfig file, loading rules, and config flag overrides.
  // Expects the AddFlags method to have been called.