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: container name from annotations
We cannot use arg.Watcher.FindContainer() because it uses k8s API where the container is still not available. Instead, we extract the name of the container from arg.Req.ContainerName. If the name is not found, we do not abort the hook because we can do other types of filtering, e.g. by pod labels. Fixes: #1879 Signed-off-by: Oleh Neichev <[email protected]> fix: don't fail when container name is not found Signed-off-by: Oleh Neichev <[email protected]>
- Loading branch information