bpfman-crictl

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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