popeye icon indicating copy to clipboard operation
popeye copied to clipboard

Scanned items counting by kind in report is incorrect (with exclusions)

Open Berber31 opened this issue 3 years ago โ€ข 0 comments




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:

  1. 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
  1. run popeye -s pod -n my-ns -f ./config.yaml
  2. Inspect report in pods section
  3. 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

Berber31 avatar Jan 18 '22 09:01 Berber31