code: func GetKubeConfigPath(file string) string {
  	// If a value is provided respect that.
  	if file != "" {
  		return file
  	}
  	// Find a config in the standard locations using DefaultClientConfigLoadingRules,
  	// but also consider the default config path.
  	rules := clientcmd.NewDefaultClientConfigLoadingRules()
  	rules.Precedence = append(rules.Precedence, kubeadmconstants.GetAdminKubeConfigPath())
  	file = rules.GetDefaultFilename()
  	klog.V(1).Infof("Using kubeconfig file: %s", file)
  	return file
  }
docs: // GetKubeConfigPath can be used to search for a kubeconfig in standard locations
  // if and empty string is passed to the function. If a non-empty string is passed
  // the function returns the same string.