{"modulePath":"github.com/linode/linode-cloud-controller-manager","version":"v0.9.11","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package nodeipam\n\nPackage nodeipam contains code for syncing cloud instances with node registry\n\n## Types\n\n```go\ntype Controller struct {\n\t// contains filtered or unexported fields\n}\n```\nController is the controller that manages node ipam state.\n\n```go\nfunc NewNodeIpamController(\n\tctx context.Context,\n\tnodeInformer coreinformers.NodeInformer,\n\tcloud cloudprovider.Interface,\n\tlinodeClient client.Client,\n\tkubeClient clientset.Interface,\n\tclusterCIDRs []*net.IPNet,\n\tserviceCIDR *net.IPNet,\n\tsecondaryServiceCIDR *net.IPNet,\n\tnodeCIDRMaskSizes []int,\n\tallocatorType ipam.CIDRAllocatorType,\n\tdisableIPv6NodeCIDRAllocation bool,\n) (*Controller, error)\n```\nNewNodeIpamController 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.\n\n```go\nfunc (nc *Controller) Run(ctx context.Context)\n```\nRun starts an asynchronous loop that monitors the status of cluster nodes.\n\n```go\nfunc (nc *Controller) RunWithMetrics(ctx context.Context, controllerManagerMetrics *controllersmetrics.ControllerManagerMetrics)\n```\nRunWithMetrics is a wrapper for Run that also tracks starting and stopping of the nodeipam controller with additional metric\n\n","path":"github.com/linode/linode-cloud-controller-manager/cloud/nodeipam","name":"nodeipam","synopsis":"Package nodeipam contains code for syncing cloud instances with node registry","isRedistributable":true}
