-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make service-range flag in controller-manager optional #26054
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,9 +225,14 @@ func StartControllers(s *options.CMServer, kubeClient *client.Client, kubeconfig | |
glog.Fatalf("Cloud provider could not be initialized: %v", err) | ||
} | ||
|
||
// this cidr has been validated already | ||
_, clusterCIDR, _ := net.ParseCIDR(s.ClusterCIDR) | ||
_, serviceCIDR, _ := net.ParseCIDR(s.ServiceCIDR) | ||
_, clusterCIDR, err := net.ParseCIDR(s.ClusterCIDR) | ||
if err != nil { | ||
glog.Warningf("Unsuccessful parsing of cluster CIDR %v: %v", s.ClusterCIDR, err) | ||
} | ||
_, serviceCIDR, err := net.ParseCIDR(s.ServiceCIDR) | ||
if err != nil { | ||
glog.Warningf("Unsuccessful parsing of service CIDR %v: %v", s.ServiceCIDR, err) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Errorf Or maybe even Fatalf There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not fatal - we do allow not passing those variables if NC is not assigning CIDRs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK - I see. |
||
} | ||
nodeController := nodecontroller.NewNodeController(cloud, clientset.NewForConfigOrDie(restclient.AddUserAgent(kubeconfig, "node-controller")), | ||
s.PodEvictionTimeout.Duration, flowcontrol.NewTokenBucketRateLimiter(s.DeletingPodsQps, int(s.DeletingPodsBurst)), | ||
flowcontrol.NewTokenBucketRateLimiter(s.DeletingPodsQps, int(s.DeletingPodsBurst)), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errorf
Or maybe even Fatalf