mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #28963 from cdrage/better-warning-kubecontroller
Automatic merge from submit-queue Warn when missing cloud-provider on kube controller
This commit is contained in:
commit
7620ed4b52
@ -160,7 +160,7 @@ func (s *ServiceController) Run(serviceSyncPeriod, nodeSyncPeriod time.Duration)
|
||||
|
||||
func (s *ServiceController) init() error {
|
||||
if s.cloud == nil {
|
||||
return fmt.Errorf("ServiceController should not be run without a cloudprovider.")
|
||||
return fmt.Errorf("WARNING: no cloud provider provided, services of type LoadBalancer will fail.")
|
||||
}
|
||||
|
||||
balancer, ok := s.cloud.LoadBalancer()
|
||||
|
Loading…
Reference in New Issue
Block a user