code: func SetKubernetesDefaults(config *Config) error {
  	if config.APIPath == "" {
  		config.APIPath = legacyAPIPath
  	}
  	if len(config.UserAgent) == 0 {
  		config.UserAgent = DefaultKubernetesUserAgent()
  	}
  	g, err := registered.Group(api.GroupName)
  	if err != nil {
  		return err
  	}
  	// TODO: Unconditionally set the config.Version, until we fix the config.
  	copyGroupVersion := g.GroupVersion
  	config.GroupVersion = &copyGroupVersion
  	if config.Codec == nil {
  		config.Codec = api.Codecs.LegacyCodec(*config.GroupVersion)
  	}
  	if config.QPS == 0.0 {
  		config.QPS = 5.0
  	}
  	if config.Burst == 0 {
  		config.Burst = 10
  	}
  	return nil
  }
docs: // SetKubernetesDefaults sets default values on the provided client config for accessing the
  // Kubernetes API or returns an error if any of the defaults are impossible or invalid.
  // TODO: this method needs to be split into one that sets defaults per group, expected to be fix in PR "Refactoring clientcache.go and helper.go #14592"