Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugtool: use gRPC instead of tetra CLI #1217

Merged
merged 1 commit into from Jul 12, 2023
Merged

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Jul 11, 2023

Commit 13bed28 introduced a tetra tracingpolicy list command for fetching the list of tracing policies in the agent. This approach, however, does not work if the tetra command is not in the path. This can happen, for example, in standalone installations.

This patch, instead of calling the tetra cli, connects to the gRPC endpoint of the server and fetches the necessary information (which is what the tetra cli does).

Commit 13bed28 introduced a tetra
tracingpolicy list command for fetching the list of tracing policies in
the agent. This approach, however, does not work if the tetra command is
not in the path. This can happen, for example, in standalone
installations.

This patch, instead of calling the tetra cli, connects to the gRPC
endpoint of the server and fetches the necessary information (which is
what the tetra cli does).

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
@kkourt kkourt requested a review from a team as a code owner July 11, 2023 14:15
@kkourt kkourt requested a review from kevsecurity July 11, 2023 14:15
@kkourt kkourt merged commit 185746c into main Jul 12, 2023
20 checks passed
@kkourt kkourt deleted the pr/kkourt/bugtool-listtp-fix branch July 12, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants