package
10.358.0+incompatible
Repository: https://github.com/aporeto-inc/trireme-lib.git
Documentation: pkg.go.dev
# Functions
DefaultConfig provides a default configuration.
New returns a new kubernetes monitor.
NewDeleteController creates a new DeleteController.
NewResyncInfoChan creates a new ResyncInfoChan.
ResyncWithAllPods is called from the implemented resync, it will list all pods and fire them down the event source (the generic event channel).
SetupDefaultConfig adds defaults to a partial configuration.
# Variables
ErrHandlePUDestroyEventFailed is the error sent back if a create event fails.
ErrHandlePUStartEventFailed is the error sent back if a start event fails.
ErrHandlePUStopEventFailed is the error sent back if a stop event fails.
ErrNetnsExtractionMissing is the error when we are missing a PID or netns path after successful metadata extraction.
# Structs
Config is the config for the Kubernetes monitor.
DeleteController is responsible for cleaning up after Kubernetes because we are missing our native ID on the last reconcile event where the pod has already been deleted.
DeleteEvent is used to send delete events to our event loop which will watch them for real deletion in the Kubernetes API.
DeleteObject is the obj used to store in the event map.
PodMonitor implements a monitor that sends pod events upstream It is implemented as a filter on the standard DockerMonitor.
ReconcilePod reconciles a Pod object.
ResyncInfoChan is used to report back from the controller on which pods it has processed.
WatchPodMapper determines if we want to reconcile on a pod event.