popeye
popeye copied to clipboard
Scanned items counting by kind in report is incorrect (with exclusions)

Describe the bug Scanned Items counting by kind in the report is incorrect when we exclude some codes.
To Reproduce Steps to reproduce the behavior:
- Deploy 1 pod in
my-ns
namespace and declare exclusions: config.yaml
popeye:
excludes:
v1/pods:
- name: rx:.*
codes:
- 105
- 108
- 109
- 110
- 111
- 112
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 300
- 301
- 303
- run
popeye -s pod -n my-ns -f ./config.yaml
- Inspect report in pods section
- Pods section report
PODS 0 SCANNED
PODS (0 SCANNED) ๐ฅ 0 ๐ฑ 0 ๐ 0 โ
0 100ูช
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
ยท Nothing to report.
Expected behavior Scan report with:
PODS (1 SCANNED) ๐ฅ 0 ๐ฑ 0 ๐ 0 โ
1 100ูช
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
ยท Nothing to report.
Screenshots NA
Versions (please complete the following information):
- OS: ubuntu
- Popeye: 0.9.8
- K8s: 1.20
Additional context NA