// NewAddonPhase returns a new addon phase. func NewAddonPhase() workflow.Phase { … } func shouldUpgradeAddons(client clientset.Interface, cfg *kubeadmapi.InitConfiguration, out io.Writer) (bool, error) { … } func getInitData(c workflow.RunData) (*kubeadmapi.InitConfiguration, clientset.Interface, string, io.Writer, bool, bool, error) { … } // runCoreDNSAddon upgrades the CoreDNS addon. func runCoreDNSAddon(c workflow.RunData) error { … } // runKubeProxyAddon upgrades the kube-proxy addon. func runKubeProxyAddon(c workflow.RunData) error { … } func getAddonPhaseFlags(name string) []string { … }