Address review comments

This commit is contained in:
cici37 2021-02-17 16:39:03 -08:00
parent b669f04648
commit 9849079d4e
3 changed files with 2 additions and 3 deletions

View File

@ -55,7 +55,7 @@ func startNodeIpamControllerWrapper(completedConfig *cloudcontrollerconfig.Compl
nodeIPAMControllerOptions.AddFlags(fs)
errors := nodeIPAMControllerOptions.Validate()
if len(errors) > 0 {
klog.Fatal("NodeIPAM controller values are not properly.")
klog.Fatal("NodeIPAM controller values are not properly set.")
}
var nodeIPAMConfig nodeipamconfig.NodeIPAMControllerConfiguration
nodeIPAMControllerOptions.ApplyTo(&nodeIPAMConfig)

View File

@ -78,7 +78,6 @@ the cloud specific control loops shipped with Kubernetes.`,
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
return err
//os.Exit(1)
}
completedConfig := c.Complete()
@ -88,7 +87,6 @@ the cloud specific control loops shipped with Kubernetes.`,
if err := Run(completedConfig, cloud, controllerInitializers, stopCh); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
return err
//os.Exit(1)
}
return nil
},

View File

@ -89,6 +89,7 @@ func StartTestServer(t Logger, customFlags []string) (result TestServer, err err
cloudInitializer := func(config *config.CompletedConfig) cloudprovider.Interface {
capturedConfig = *config
// send signal to indicate the capturedConfig has been properly set
configDoneCh <- ""
close(configDoneCh)
cloudConfig := config.ComponentConfig.KubeCloudShared.CloudProvider