Skip to content

Commit

Permalink
bugtool: dump auth map related information
Browse files Browse the repository at this point in the history
This commit introduces that auth map related information are dumped
when executing the bugtool / sysdump.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
  • Loading branch information
mhofstetter authored and aanm committed Jun 12, 2023
1 parent 2920010 commit ae6d178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bugtool/cmd/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func defaultCommands(confDir string, cmdDir string, k8sPods []string) []string {
if bpffsMountpoint := bpffsMountpoint(); bpffsMountpoint != "" {
commands = append(commands, []string{
// LB and CT map for debugging services; using bpftool for a reliable dump
fmt.Sprintf("bpftool map dump pinned %s/tc/globals/cilium_auth_map", bpffsMountpoint),
fmt.Sprintf("bpftool map dump pinned %s/tc/globals/cilium_call_policy", bpffsMountpoint),
fmt.Sprintf("bpftool map dump pinned %s/tc/globals/cilium_calls_overlay_2", bpffsMountpoint),
fmt.Sprintf("bpftool map dump pinned %s/tc/globals/cilium_capture_cache", bpffsMountpoint),
Expand Down Expand Up @@ -370,6 +371,7 @@ func copyCiliumInfoCommands(cmdDir string, k8sPods []string) []string {
"cilium config -a",
"cilium encrypt status",
"cilium endpoint list",
"cilium bpf auth list",
"cilium bpf bandwidth list",
"cilium bpf tunnel list",
"cilium bpf lb list",
Expand Down

0 comments on commit ae6d178

Please sign in to comment.