Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitialStartup = iota DistributedRouterInitialized PodsInitialized )
these constants represent the initialization states of a linux node
View Source
const ( // HybridOverlayAnnotationBase holds the hybrid overlay annotation base HybridOverlayAnnotationBase = "k8s.ovn.org/hybrid-overlay-" // HybridOverlayNodeSubnet holds the pod CIDR assigned to the node HybridOverlayNodeSubnet = HybridOverlayAnnotationBase + "node-subnet" // HybridOverlayDRMAC holds the MAC address of the Distributed Router/gateway HybridOverlayDRMAC = HybridOverlayAnnotationBase + "distributed-router-gateway-mac" // HybridOverlayDRIP holds the port address to redirect traffic to get to the hybrid overlay HybridOverlayDRIP = HybridOverlayAnnotationBase + "distributed-router-gateway-ip" // HybridOverlayVNI is the VNI for VXLAN tunnels between nodes/endpoints HybridOverlayVNI = 4097 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HybridInitState ¶
type HybridInitState *uint32
type NodeHandler ¶
type NodeHandler interface { // Add is called when a new object is created Add(obj *kapi.Node) // Update is called when an object is updated, both old and new ones are passed along Update(oldObj *kapi.Node, newObj *kapi.Node) // Delete is called when an object is deleted Delete(obj *kapi.Node) // Sync is called to synchronize the full list of objects Sync(objs []*kapi.Node) }
NodeHandler interface respresents the three functions that get called by the informer upon respective events
Click to show internal directories.
Click to hide internal directories.