nodeipam

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package nodeipam contains code for syncing cloud instances with node registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is the controller that manages node ipam state.

func NewNodeIpamController

func NewNodeIpamController(
	ctx context.Context,
	nodeInformer coreinformers.NodeInformer,
	cloud cloudprovider.Interface,
	kubeClient clientset.Interface,
	clusterCIDRs []*net.IPNet,
	serviceCIDRs []*net.IPNet,
	nodeCIDRMaskSizes []int,
	allocatorType ipam.CIDRAllocatorType,
) (*Controller, error)

NewNodeIpamController returns a new node IP Address Management controller to sync instances from cloudprovider. This method returns an error if it is unable to initialize the CIDR bitmap with podCIDRs it has already allocated to nodes. Since we don't allow podCIDR changes currently, this should be handled as a fatal error.

func (*Controller) Run

func (nc *Controller) Run(ctx context.Context)

Run starts an asynchronous loop that monitors the status of cluster nodes.

func (*Controller) RunWithMetrics

func (nc *Controller) RunWithMetrics(ctx context.Context, controllerManagerMetrics *controllersmetrics.ControllerManagerMetrics)

RunWithMetrics is a wrapper for Run that also tracks starting and stopping of the nodeipam controller with additional metric.

Directories

Path Synopsis
Package ipam implement IPAM for node CIDR range allocation.
Package ipam implement IPAM for node CIDR range allocation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL