kubernetes/pkg/controller/nodeipam/ipam/cidr_allocator.go

type CIDRAllocatorType

const RangeAllocatorType

const CloudAllocatorType

const IPAMFromClusterAllocatorType

const IPAMFromCloudAllocatorType

const apiserverStartupGracePeriod

const cidrUpdateWorkers

const cidrUpdateRetries

var nodePollInterval

type CIDRAllocator

type CIDRAllocatorParams

// New creates a new CIDR range allocator.
func New(ctx context.Context, kubeClient clientset.Interface, cloud cloudprovider.Interface, nodeInformer informers.NodeInformer, allocatorType CIDRAllocatorType, allocatorParams CIDRAllocatorParams) (CIDRAllocator, error) {}

func listNodes(ctx context.Context, kubeClient clientset.Interface) (*v1.NodeList, error) {}

// ipnetToStringList converts a slice of net.IPNet into a list of CIDR in string format
func ipnetToStringList(inCIDRs []*net.IPNet) []string {}

// occupyServiceCIDR removes the service CIDR range from the cluster CIDR if it
// intersects.
func occupyServiceCIDR(set *cidrset.CidrSet, clusterCIDR, serviceCIDR *net.IPNet) error {}