Short:"Upgrades the control plane instance deployed on this node. IMPORTANT. This command should be executed after executing `kubeadm upgrade apply` on another control plane instance",
Long:upgradeNodeConfigLongDesc,
Example:upgradeNodeConfigExample,
Run:func(cmd*cobra.Command,args[]string){
ifflags.nodeName==""{
glog.V(1).Infoln("[upgrade] found NodeName empty; considered OS hostname as NodeName")
cmd.Flags().BoolVar(&flags.dryRun,"dry-run",flags.dryRun,"Do not change any state, just output the actions that would be performed.")
//TODO: following values should retrieved form the kubeadm-config config map; remove as soon as the new config wil be in place
cmd.Flags().StringVar(&flags.advertiseAddress,"apiserver-advertise-address",flags.advertiseAddress,"If the node is joining as a master, the IP address the API Server will advertise it's listening on.")
cmd.Flags().StringVar(&flags.nodeName,"node-name",flags.nodeName,"Specify the node name.")
returncmd
}
// RunUpgradeNodeConfig is executed when `kubeadm upgrade node config` runs.