-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
holmes to use grep logs more by tweaking instruction, move to grep -E (…
- Loading branch information
Showing
4 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
2 changes: 2 additions & 0 deletions
2
tests/fixtures/test_chat/8_multi_container_pod/kubectl_find_resource.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{"toolset_name":"kubernetes/core","tool_name":"kubectl_find_resource","match_params":{"kind":"pod","keyword":"customer-orders-67889fd856-k94k7"}} | ||
default customer-orders-67889fd856-k94k7 1/1 Running 0 16m 10.244.0.11 kind-control-plane <none> <none> app=robusta-runner,pod-template-hash=746d848db9,robustaComponent=runner |
6 changes: 3 additions & 3 deletions
6
tests/fixtures/test_chat/8_multi_container_pod/kubectl_logs_grep.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{"toolset_name":"kubernetes/core","tool_name":"kubectl_logs_grep","match_params":{"name":"customer-orders-67889fd856-k94k7","namespace":"default","search_term":"render time"}} | ||
Command `kubectl logs customer-orders-67889fd856-k94k7 -n default | grep 'render time'` failed with return code 1 | ||
{"toolset_name":"kubernetes/core","tool_name":"kubectl_logs_grep","match_params":{"pod_name":"customer-orders-67889fd856-k94k7","namespace":"default","extended_regexp_pattern":"render time"}} | ||
Command `kubectl logs customer-orders-67889fd856-k94k7 -n default | grep -E 'render time'` failed with return code 1 | ||
stdout: | ||
|
||
stderr: | ||
Defaulted container "curl-sidecar" out of: curl-sidecar, fastapi-app | ||
error: error from server (NotFound): pods "customer-orders-67889fd856-k94k7" not found in namespace "default" |