Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tetragon-oci-hook: support container name
Tested as follows: Containerd: ``` $ minikube start --container-runtime=containerd $ ./contrib/rthooks/minikube-install-hook.sh -l $ kubectl run ubuntu-pizza --restart=Never --image=ubuntu $ minikube ssh -- sudo cat /opt/tetragon/tetragon-oci-hook.log | \ tr -d "[:cntrl:]" | \ jq '. | select(.msg | contains("gRPC was disabled")) | ."req-containerName"' "storage-provisioner" "ubuntu-pizza" ``` Crio: ``` $ minikube start --container-runtime=cri-o $ ./contrib/rthooks/minikube-install-hook.sh -l $ kalypso:~/src/tetragon:[oci-hooks-update]> kubectl run ketchup --restart=Never --image=ubuntu pod/ketchup created $ minikube ssh -- sudo cat /opt/tetragon/tetragon-oci-hook.log | \ tr -d "[:cntrl:]" | \ jq '. | select(.msg | contains("gRPC was disabled")) | ."req-containerName"' "ketchup" ``` Signed-off-by: Kornilios Kourtis <[email protected]>
- Loading branch information