returnnil,errors.Errorf("File %s does not exists. Please use 'kubeadm join phase control-plane-prepare' subcommands to generate it.",adminKubeConfigPath)
}
klog.V(1).Infof("[join] found discovery flags missing for this command. using FileDiscovery: %s",adminKubeConfigPath)
opt.externalcfg.Discovery.BootstrapToken=nil//NB. this could be removed when we get better control on args (e.g. phases without discovery should have NoArgs )
Short:"Generates the certificates for the new control plane components",
Run:runControlPlanePrepareCertsPhaseLocal,
InheritFlags:getControlPlanePreparePhaseFlags(),//NB. eventually in future we would like to break down this in sub phases for each cert or add the --csr option
Run:runControlPlanePrepareCertsPhaseLocal,//NB. eventually in future we would like to break down this in sub phases for each cert or add the --csr option