Documentation
¶
Overview ¶
Package pods watches kubelet's local PodsAPI and publishes fail-closed snapshots.
Index ¶
Constants ¶
View Source
const DefaultSocket = "unix:///var/lib/kubelet/pods-api/pods-api.sock"
DefaultSocket is the kubelet PodsAPI Unix socket.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GRPCClient ¶
type GRPCClient struct{ Client podsv1alpha1.PodsClient }
GRPCClient adapts the generated kubelet client.
type Pod ¶
type Pod struct {
UID string
Namespace string
Labels map[string]string
Address netip.Addr
Eligible bool
}
Pod is the selector and readiness information owned by the watcher.
type Stream ¶
type Stream interface {
Recv() (*podsv1alpha1.WatchPodsEvent, error)
}
Stream is the injectable subset of a PodsAPI watch stream.
Click to show internal directories.
Click to hide internal directories.