mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
ccm: make missing --cloud-provider fatal
This commit is contained in:
parent
91dc0ca339
commit
1675f025ea
@ -85,7 +85,7 @@ func resyncPeriod(s *options.CloudControllerManagerServer) func() time.Duration
|
|||||||
// Run runs the ExternalCMServer. This should never exit.
|
// Run runs the ExternalCMServer. This should never exit.
|
||||||
func Run(s *options.CloudControllerManagerServer) error {
|
func Run(s *options.CloudControllerManagerServer) error {
|
||||||
if s.CloudProvider == "" {
|
if s.CloudProvider == "" {
|
||||||
glog.Errorf("--cloud-provider cannot be empty")
|
glog.Fatalf("--cloud-provider cannot be empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
cloud, err := cloudprovider.InitCloudProvider(s.CloudProvider, s.CloudConfigFile)
|
cloud, err := cloudprovider.InitCloudProvider(s.CloudProvider, s.CloudConfigFile)
|
||||||
|
Loading…
Reference in New Issue
Block a user