mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +00:00
Merge pull request #26054 from gmarek/flags
Make service-range flag in controller-manager optional
This commit is contained in:
@@ -265,7 +265,11 @@ func NewNodeController(
|
||||
// Run starts an asynchronous loop that monitors the status of cluster nodes.
|
||||
func (nc *NodeController) Run(period time.Duration) {
|
||||
if nc.allocateNodeCIDRs {
|
||||
nc.filterOutServiceRange()
|
||||
if nc.serviceCIDR != nil {
|
||||
nc.filterOutServiceRange()
|
||||
} else {
|
||||
glog.Info("No Service CIDR provided. Skipping filtering out service addresses.")
|
||||
}
|
||||
}
|
||||
|
||||
go nc.nodeController.Run(wait.NeverStop)
|
||||
|
||||
Reference in New Issue
Block a user