Skip to content

Commit 2c416fb

Browse files
authored
Minor fixes in troubleshooting doc (kyverno#12514)
Signed-off-by: Aditya Kumar <[email protected]>
1 parent 5a77962 commit 2c416fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/dev/troubleshooting/reports.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reports
22

3-
This document contains scripts to help troubleshooting reports issues.
3+
This document contains scripts to help troubleshoot reports issues.
44

55
## Getting reports detailed information
66

@@ -10,7 +10,7 @@ This will show information about the resource associated with the report.
1010

1111
It can be useful to determine if a particular resource kind is responsible for creating too many reports.
1212

13-
If `APIVERSION`, `KIND` and `SUBJECT` is empty it means the report is orphan and it is an issue if the report is more than a couple of minutes old.
13+
If `APIVERSION`, `KIND` and `SUBJECT` is empty it means the report is orphaned, and it is an issue if the report is more than a couple of minutes old.
1414

1515
```console
1616
# list cluster admission reports
@@ -37,7 +37,7 @@ NAME APIVERSION KIND
3737

3838
## Getting the number of reports in a cluster
3939

40-
This will help checking if reports are incorrectly accumulating in the cluster.
40+
This will help check if reports are incorrectly accumulating in the cluster.
4141

4242
```console
4343
COUNT=$(kubectl get cadmr --no-headers 2> /dev/null | wc -l)
@@ -65,9 +65,9 @@ done
6565

6666
## Getting the number of reports per kind
6767

68-
Use the script below to get number of reports per resource kind in a cluster.
68+
Use the script below to get the number of reports per resource kind in a cluster.
6969

70-
This will help determining if a particular resource kind is responsible for creating too many reports.
70+
This will help determine if a particular resource kind is responsible for creating too many reports.
7171

7272
```console
7373
API_LIST=$(kubectl api-resources --namespaced=false --no-headers | awk '{print $NF}')
@@ -87,7 +87,7 @@ do
8787
echo "number of admission reports for $api: $COUNT"
8888

8989
COUNT=$(kubectl get bgscanr --no-headers -o jsonpath="{range .items[?(@.metadata.ownerReferences[0].kind=='$api')]}{.metadata.name}{'\n'}{end}" 2> /dev/null | wc -l)
90-
echo "number of background scan reports for $api: $COUNT"
90+
echo "number of background scan reports for $api: $COUNT"
9191
done
9292
```
9393

@@ -97,7 +97,7 @@ By using `--watch-only` with `kubectl` you can view report changes only without
9797

9898
Listing existing reports can take a long time when there is a high number of reports.
9999

100-
With `--watch-only` you only get an output for reports that are created, updated or deleted.
100+
With `--watch-only` you only get an output for reports that are created, updated, or deleted.
101101

102102
This is useful to determine if a particular resource kind is responsible for creating too many reports.
103103

0 commit comments

Comments
 (0)