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

Kmeshctl support for structured bpftool dumped map content #1117

Open
LiZhenCheng9527 opened this issue Dec 13, 2024 · 1 comment · May be fixed by #1216
Open

Kmeshctl support for structured bpftool dumped map content #1117

LiZhenCheng9527 opened this issue Dec 13, 2024 · 1 comment · May be fixed by #1216
Assignees
Labels
good first issue Good for newcomers

Comments

@LiZhenCheng9527
Copy link
Collaborator

Task description:
Now the contents of the map dumped by bpftool are unit32 or hexadecimal. We need to convert to get the information we need
So we want the kmeshctl tool to be able to present a structured view of what is in a Kmesh bpf map. So that it is easier to develop and locate problems.

{
        "key": {
            "": {
                "netns_cookie": 855700490,
                "addr": {
                    "": {
                        "ip4": 855700490,
                        "ip6": [855700490,0,0,0
                        ]
                    }
                }
            }
        },
        "value": 0

Solution:
kmeshctl <kmesh-pod-name> get map to get the bpf map created by kmesh.
`kmeshctl get to get structured map contents.
If anyone else has a better design they are able to, they can suggest it in the issue as well!

Who can join or take the task:

The good first issue is intended for first-time contributors to get started on his/her contributor journey.

After a contributor has successfully completed 1-2 good first issue's,
they should be ready to move on to help wanted items, saving the remaining good first issue for other new contributors.

How to join or take the task:

Just reply on the issue with the message /assign in a separate line.

Then, the issue will be assigned to you.

How to ask for help:

If you need help or have questions, please feel free to ask on this issue.
The issue author or other members of the community will guide you through the contribution process.

@LiZhenCheng9527 LiZhenCheng9527 added the good first issue Good for newcomers label Dec 13, 2024
@cr7258
Copy link

cr7258 commented Jan 7, 2025

/assign

@nitishmalang nitishmalang linked a pull request Feb 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants