{"modulePath":"github.com/openshift/cloud-network-config-controller","version":"v0.0.0-20261029170518-e4d8b92203f4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Functions\n\n```go\nfunc NewNodeController(\n\tcontrollerContext context.Context,\n\tkubeClientset kubernetes.Interface,\n\tcloudProviderClient cloudprovider.CloudProviderIntf,\n\tnodeInformer coreinformers.NodeInformer,\n\tcloudPrivateIPConfigInformer cloudnetworkinformers.CloudPrivateIPConfigInformer) (*controller.CloudNetworkConfigController, error)\n```\nNewNodeController returns a new Node controller\n\n## Types\n\n```go\ntype NodeController struct {\n\tcontroller.CloudNetworkConfigController\n\t// contains filtered or unexported fields\n}\n```\nNodeController is the controller implementation for Node resources This controller is used to annotate nodes for the purposes of the cloud network config controller\n\n```go\nfunc (n *NodeController) InitialSync() error\n```\n\n```go\nfunc (n *NodeController) SetNodeEgressIPConfigAnnotation(node *corev1.Node, nodeEgressIPConfigs []*cloudprovider.NodeEgressIPConfiguration) error\n```\nSetCloudPrivateIPConfigAnnotationOnNode annotates the corev1.Node with the cloud subnet information and capacity\n\n```go\nfunc (n *NodeController) SyncHandler(key string) error\n```\nsyncHandler 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.\n\n","path":"github.com/openshift/cloud-network-config-controller/pkg/controller/node","name":"controller","synopsis":"","isRedistributable":true}
