Documentation
¶
Overview ¶
Package main implements bpfman-crictl, a minimal crictl replacement for bpfman-operator.
This is a cut-down version of crictl that implements only the specific functionality needed by bpfman-operator for container PID discovery:
- pods --name <name> -o json (list pods by exact name)
- ps --pod <pod-id> -o json (list containers in a pod)
- inspect -o json <container-id> (inspect container for PID)
Unlike the full crictl implementation, this version:
- Uses exact string matching for pod names instead of regex matching
- Only supports JSON output format
- Implements timeout-based socket discovery matching crictl's behavior
- Provides a native Go CRI gRPC client instead of external process calls
This eliminates the external crictl dependency while maintaining functionality for bpfman-operator's container discovery use case.
Click to show internal directories.
Click to hide internal directories.