Skip to content

Commit 557cda8

Browse files
authored
Merge pull request #113 from solo-io/improved-parsing
Improved parsing
2 parents b25aa56 + ae9c5a3 commit 557cda8

File tree

17 files changed

+3014
-63
lines changed

17 files changed

+3014
-63
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Each section below contains it's own README and associated links, please feel fr
2525

2626
- [Useful Tools](tools/)
2727
- [Image List for Air-gap Install of Gloo Mesh Enterprise](tools/airgap-install/README.md)
28-
- [Istio Bug-report CRD Parser](tools/crd_parser/README.md)
28+
- [Istio Bug-report CRD Parser](tools/ibrp/README.md)
2929
- [Datadog Integration](tools/datadog/README.md)
3030
- [Istio Performance Grafana Dashboard Example](tools/grafana/README.md)
3131
- [Bombardier Load Generator](tools/loadgenerator/bombardier-loadgen)

tools/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Tooling that can ease/assist with Gloo Mesh onboarding and troubleshooting as well as Day 2 tasks
44

55
- Air-gap Installation Image List
6-
- Istio bug-report crd parser
6+
- [Istio bug-report parser](ibrp/README.md)
77
- Datadog Integration
88
- Istio Performance Grafana Dashboard Example
99
- Load Generator tools

tools/crd_parser/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/crd_parser/README.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

tools/crd_parser/crd_parser.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

tools/crd_parser/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/ibrp/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_version.py export-subst

tools/ibrp/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
venv
2+
.idea
3+
build
4+
dist
5+
*.spec

tools/ibrp/LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2023 Solo, Inc.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

tools/ibrp/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Istio Bug Report Parser
2+
3+
A simple Python script to assist with parsing various aspects of the istioctl bug-report output.
4+
5+
Currently, this script can parse custom resources and nodes.
6+
7+
To parse CRs, this script depends on the standard input of a list of CRs under the heading 'items'. If this is not
8+
found, the script will fail.
9+
10+
## Dependencies
11+
Make sure you have Python3 enabled in your path.
12+
13+
You will need to `pip install pyyaml`.
14+
15+
## Running
16+
17+
```commandline
18+
python3 ibrp.py <operation> <path-to-your-crd-file>
19+
```
20+
21+
Operation will be either 'crparse' or 'nodeparse'.
22+
23+
### Parsing CRs
24+
Output will go to the crs directory as a child of the current directory. Each type of custom resource will be created
25+
in a directory named by the type of CR.
26+
27+
Note that for production workloads, parsing can take a few minutes. The script will provide output on progress.
28+
29+
### Parsing Nodes
30+
Nodes will be parsed to capture the name, roles and cpus. Output will be sent to stdout.

0 commit comments

Comments
 (0)