types

package
v0.0.0-...-b0386ac Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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