Azure / Azure/vscode-aks-tools
[RFE] Inspektor Gadget: Improve the way IP addreses are showed in the output
- Dominant language
- TypeScript
- Stars
- 65
- Forks
- 78
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 22
Description
The way IP addresses are showed in the output of Inspektor Gadget can be improved to not simply show the raw IP, but use the Kubernetes resource when it is available:
Current situation:
```bash
Src Dst
10.244.1.15:8080 10.244.2.41:56466
```
Proposal:
```bash
Src Dst
p/default/pod-1:8080 p/default/pod-2:56466
```
The logic to do it is available [here](https://github.com/inspektor-gadget/inspektor-gadget/blob/a0953cf380734d724f1fcde9b7697fd0bb1272c6/pkg/types/types.go#L229-L243).
So, [this logic](https://github.com/Azure/vscode-aks-tools/blob/7ee1922a13a819333ff1ee7b513ecbdaf417ed70/webview-ui/src/InspektorGadget/helpers/gadgets/common.ts#L47C1-L50C3) needs to be modified to take advantage of the whole data provided by Inspektor Gadget.
Contributor guide
Research direction
Start in webview-ui/src/InspektorGadget/helpers/gadgets/common.ts and compare its IP formatting with the resource-handling logic in pkg/types/types.go. Update the displayed source and destination addresses to use the available Kubernetes resource details, while retaining ports and raw IPs when no resource is available.】【。}】【:】【“】【ไม่ต้องฝาก 恒一 аусқәа? Wait malformed due Armenian? Need fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, typescript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100