controller

package
v0.0.0-...-e4d8b92 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 21 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNodeController

func NewNodeController(
	controllerContext context.Context,
	kubeClientset kubernetes.Interface,
	cloudProviderClient cloudprovider.CloudProviderIntf,
	nodeInformer coreinformers.NodeInformer,
	cloudPrivateIPConfigInformer cloudnetworkinformers.CloudPrivateIPConfigInformer) (*controller.CloudNetworkConfigController, error)

NewNodeController returns a new Node controller

Types

type NodeController

type NodeController struct {
	controller.CloudNetworkConfigController
	// contains filtered or unexported fields
}

NodeController is the controller implementation for Node resources This controller is used to annotate nodes for the purposes of the cloud network config controller

func (*NodeController) InitialSync

func (n *NodeController) InitialSync() error

func (*NodeController) SetNodeEgressIPConfigAnnotation

func (n *NodeController) SetNodeEgressIPConfigAnnotation(node *corev1.Node, nodeEgressIPConfigs []*cloudprovider.NodeEgressIPConfiguration) error

SetCloudPrivateIPConfigAnnotationOnNode annotates the corev1.Node with the cloud subnet information and capacity

func (*NodeController) SyncHandler

func (n *NodeController) SyncHandler(key string) error

syncHandler compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the Node resource with the current status of the resource.

Jump to

Keyboard shortcuts

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