bugtool: detect bpftool path#1219
Merged
Merged
Conversation
kkourt
requested changes
Jul 12, 2023
When saving tetragon-info.json from agent context, get $PATH and try to locate bpftool and save its path inside tetragon-info.json. Then on client tetra bugtool dump read again the path of bpftool and use it. Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
tixxdz
force-pushed
the
pr/tixxdz/bugtool-bpftool-path
branch
from
July 12, 2023 14:07
0e49632 to
8667e86
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This helps to detect bpftool from agent context, and also allow users to specify it as command line switch to tetra cli.
In packages deployment we set the PATH in the systemd service file including directory where our bpftool is shipped, which helps to pick it first.