controller

package
v0.0.0-...-a6bc591 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

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) 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