Skip to content

bugtool: use gRPC instead of tetra CLI#1217

Merged
kkourt merged 1 commit into
mainfrom
pr/kkourt/bugtool-listtp-fix
Jul 12, 2023
Merged

bugtool: use gRPC instead of tetra CLI#1217
kkourt merged 1 commit into
mainfrom
pr/kkourt/bugtool-listtp-fix

Conversation

@kkourt

@kkourt kkourt commented Jul 11, 2023

Copy link
Copy Markdown
Contributor

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
@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

2 participants