code: func SetDefaults_FileDiscovery(obj *FileDiscovery) {
  	// Make sure file URL becomes path
  	if len(obj.KubeConfigPath) != 0 {
  		u, err := url.Parse(obj.KubeConfigPath)
  		if err == nil && u.Scheme == "file" {
  			obj.KubeConfigPath = u.Path
  		}
  	}
  }
docs: // SetDefaults_FileDiscovery assigns default values for file based discovery