mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Address review comments
This commit is contained in:
parent
b669f04648
commit
9849079d4e
@ -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)
|
||||
|
@ -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
|
||||
},
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user