pkg

package
v0.0.0-...-67b321a Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentNode

func GetCurrentNode() (*coreV1.Node, error)

func GetCurrentNodeName

func GetCurrentNodeName() (string, error)

Get Node Info (Current Node)

func InitK8sClient

func InitK8sClient() *kubernetes.Clientset

In Cluster

func InitNodeInformer

func InitNodeInformer(clientSet *kubernetes.Clientset, stopCh <-chan struct{}) error

func PatchNode

func PatchNode(oldNode, newNode *coreV1.Node) error

func SetUpNodeHandler

func SetUpNodeHandler(nodeName string, vxlan *netlink.Vxlan, vxlanAddr net.IP)

Types

type NodeData

type NodeData struct {
	IPNet   *net.IPNet
	VtepMac net.HardwareAddr
	HostIP  net.IP
}

Jump to

Keyboard shortcuts

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