code: func ConfigFor(inConfig *rest.Config) *rest.Config {
  	config := rest.CopyConfig(inConfig)
  	config.AcceptContentTypes = "application/json"
  	config.ContentType = "application/json"
  	config.NegotiatedSerializer = basicNegotiatedSerializer{} // this gets used for discovery and error handling types
  	if config.UserAgent == "" {
  		config.UserAgent = rest.DefaultKubernetesUserAgent()
  	}
  	return config
  }
docs: // ConfigFor returns a copy of the provided config with the
  // appropriate dynamic client defaults set.