cmd.PersistentFlags().StringVar(&kubeConfigFile,"kubeconfig",kubeadmconstants.DefaultKubeConfig,"The KubeConfig file to use when talking to the cluster.")
cmd.PersistentFlags().StringVar(&kubeConfigFile,"kubeconfig",filepath.Join(kubeadmconstants.KubernetesDir,kubeadmconstants.AdminKubeConfigFileName),"The KubeConfig file to use when talking to the cluster.")
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",kubeadmconstants.DefaultKubeConfig,"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",filepath.Join(kubeadmconstants.KubernetesDir,kubeadmconstants.AdminKubeConfigFileName),"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to a kubeadm config file. WARNING: Usage of a configuration file is experimental")
cmd.Flags().StringVar(&cfg.KubernetesVersion,"kubernetes-version",cfg.KubernetesVersion,`Choose a specific Kubernetes version for the control plane`)
cmd.Flags().StringVar(&cfg.ImageRepository,"image-repository",cfg.ImageRepository,`Choose a container registry to pull control plane images from`)
cmd.PersistentFlags().StringVar(&kubeConfigFile,"kubeconfig",kubeadmconstants.DefaultKubeConfig,"The KubeConfig file to use when talking to the cluster")
cmd.PersistentFlags().StringVar(&kubeConfigFile,"kubeconfig",filepath.Join(kubeadmconstants.KubernetesDir,kubeadmconstants.AdminKubeConfigFileName),"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",kubeadmconstants.DefaultKubeConfig,"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",filepath.Join(kubeadmconstants.KubernetesDir,kubeadmconstants.AdminKubeConfigFileName),"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&cfgPath,"config",cfgPath,"Path to kubeadm config file. WARNING: Usage of a configuration file is experimental")
cmd.Flags().StringVar(&cfg.NodeRegistration.Name,"node-name",cfg.NodeRegistration.Name,`The node name to which label and taints should apply`)
// flags that are not bound to the configuration object
// Note: All flags that are not bound to the cfg object should be whitelisted in cmd/kubeadm/app/apis/kubeadm/validation/validation.go
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",kubeadmconstants.DefaultKubeConfig,"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",filepath.Join(kubeadmconstants.KubernetesDir,kubeadmconstants.AdminKubeConfigFileName),"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",kubeadmconstants.DefaultKubeConfig,"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&kubeConfigFile,"kubeconfig",filepath.Join(kubeadmconstants.KubernetesDir,kubeadmconstants.AdminKubeConfigFileName),"The KubeConfig file to use when talking to the cluster")
cmd.Flags().StringVar(&cfgPath,"config","","Path to a kubeadm config file. WARNING: Usage of a configuration file is experimental")
"kubeconfig",kubeadmconstants.DefaultKubeConfig,"The KubeConfig file to use when talking to the cluster. If the flag is not set a set of standard locations are searched for an existing KubeConfig file")
"kubeconfig",filepath.Join(kubeadmconstants.KubernetesDir,kubeadmconstants.AdminKubeConfigFileName),"The KubeConfig file to use when talking to the cluster. If the flag is not set a set of standard locations are searched for an existing KubeConfig file")
tokenCmd.PersistentFlags().BoolVar(&dryRun,
"dry-run",dryRun,"Whether to enable dry-run mode or not")