Commit d4d6bb08 authored by Darren Shepherd's avatar Darren Shepherd

Delete IPAM misc

parent 9a9516be
...@@ -44,12 +44,6 @@ const ( ...@@ -44,12 +44,6 @@ const (
// RangeAllocatorType is the allocator that uses an internal CIDR // RangeAllocatorType is the allocator that uses an internal CIDR
// range allocator to do node CIDR range allocations. // range allocator to do node CIDR range allocations.
RangeAllocatorType CIDRAllocatorType = "RangeAllocator" RangeAllocatorType CIDRAllocatorType = "RangeAllocator"
// IPAMFromClusterAllocatorType uses the ipam controller sync'ing the node
// CIDR range allocations from the cluster to the cloud.
IPAMFromClusterAllocatorType = "IPAMFromCluster"
// IPAMFromCloudAllocatorType uses the ipam controller sync'ing the node
// CIDR range allocations from the cloud to the cluster.
IPAMFromCloudAllocatorType = "IPAMFromCloud"
) )
// TODO: figure out the good setting for those constants. // TODO: figure out the good setting for those constants.
......
...@@ -142,9 +142,7 @@ func (nc *Controller) Run(stopCh <-chan struct{}) { ...@@ -142,9 +142,7 @@ func (nc *Controller) Run(stopCh <-chan struct{}) {
return return
} }
if nc.allocatorType != ipam.IPAMFromClusterAllocatorType && nc.allocatorType != ipam.IPAMFromCloudAllocatorType { go nc.cidrAllocator.Run(stopCh)
go nc.cidrAllocator.Run(stopCh)
}
<-stopCh <-stopCh
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment