disabled addons while starting node if existing addons in nil

pull/15762/head
Shubh Bapna 2023-01-31 14:19:28 -05:00
parent e0016e6ed1
commit b0513bcbc8
1 changed files with 3 additions and 1 deletions

View File

@ -232,8 +232,10 @@ func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
if starter.ExistingAddons != nil {
klog.Infof("waiting for cluster config update ...")
if ea, ok := <-enabledAddons; ok {
addons.UpdateConfig(starter.Cfg, ea)
addons.UpdateConfigToEnable(starter.Cfg, ea)
}
} else {
addons.UpdateConfigToDisable(starter.Cfg)
}
// Write enabled addons to the config before completion