Snoop now automatically discovers its own cgroup path from /proc/self/cgroup,
eliminating the need for initContainers in Kubernetes deployments.
Changes:
- Add GetSelfCgroupPath() to parse cgroup v2 format from /proc/self/cgroup
- Make -cgroup flag optional (auto-discovers if omitted)
- Remove CgroupPath validation requirement from config
- Wire auto-discovery into main startup with clear logging
- Add comprehensive unit tests for parsing and integration
- Remove initContainer from all Kubernetes manifests
- Update documentation to reflect simplified deployment
The -cgroup flag remains available for users who want to trace a different
cgroup or override auto-discovery.
Fixes all milestones in cgroup-plan.md
Signed-off-by: Jason Hall <jason@chainguard.dev>