Skip to content

v0.21.6 popeye -s po returns nothing and "Booms" with message "No linters matched query" #408

@oboudry-mvp

Description

@oboudry-mvp




Describe the bug
When upgrading from v0.21.5 to v0.21.6, popeye does not show some sections, like po or ing.

To Reproduce
Steps to reproduce the behavior:

  1. Using go1.23.4 linux/amd64
  2. Install popeye by running go install github.com/derailed/popeye@v0.21.6
  3. Run popeye -s po
  4. See output below
 ___     ___ _____   _____                       D          .-'-.
| _ \___| _ \ __\ \ / / __|                       O     __| K    `\
|  _/ _ \  _/ _| \ V /| _|                         H   `-,-`--._   `\
|_| \___/_| |___| |_| |___|                       []  .->'  X     `|-'
  Biffs`em and Buffs`em!                            `=/ (__/_       /
                                                      \_,    `    _)
                                                         `----;  |


Boom! 💥 no linters matched query. check section selector (see logs)

Expected behavior

  1. Using go1.23.4 linux/amd64
  2. Install popeye by running go install github.com/derailed/popeye@v0.21.5
  3. Run popeye -s po
  4. See output below
 ___     ___ _____   _____                                                      K          .-'-.
| _ \___| _ \ __\ \ / / __|                                                      8     __|      `\
|  _/ _ \  _/ _| \ V /| _|                                                        s   `-,-`--._   `\
|_| \___/_| |___| |_| |___|                                                      []  .->'  a     `|-'
  Biffs`em and Buffs`em!                                                          `=/ (__/_       /
                                                                                    \_,    `    _)
                                                                                       `----;  |


GENERAL [CLUSTER.LOCAL] (2025-01-07T15:11:44Z)
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
  · Connectivity...................................................................................✅
  · MetricServer...................................................................................✅


PODS (3 SCANNED)                                                               💥 0 😱 3 🔊 0 ✅ 0 0٪
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
  · paperless/paperless-ngx-broker-74746d97d6-bzx9x................................................😱
    😱 [POP-1204] Pod Ingress is not secured by a network policy.
    😱 [POP-1204] Pod Egress is not secured by a network policy.
    🔊 [POP-206] Pod has no associated PodDisruptionBudget.
    😱 [POP-300] Uses "default" ServiceAccount.
    😱 [POP-302] Pod could be running as root user. Check SecurityContext/Image.
    🐳 paperless-ngx-broker
      😱 [POP-102] No probes defined.
      😱 [POP-306] Container could be running as root user. Check SecurityContext/Image.
  · paperless/paperless-ngx-postgres-7686dfb759-kd4vw..............................................😱
    😱 [POP-1204] Pod Ingress is not secured by a network policy.
    😱 [POP-1204] Pod Egress is not secured by a network policy.
    🔊 [POP-206] Pod has no associated PodDisruptionBudget.
    😱 [POP-300] Uses "default" ServiceAccount.
    😱 [POP-302] Pod could be running as root user. Check SecurityContext/Image.
    🐳 postgres
      😱 [POP-102] No probes defined.
      😱 [POP-306] Container could be running as root user. Check SecurityContext/Image.
  · paperless/paperless-ngx-webserver-57bc987484-22v8d.............................................😱
    😱 [POP-1204] Pod Ingress is not secured by a network policy.
    😱 [POP-1204] Pod Egress is not secured by a network policy.
    🔊 [POP-206] Pod has no associated PodDisruptionBudget.
    😱 [POP-300] Uses "default" ServiceAccount.
    😱 [POP-302] Pod could be running as root user. Check SecurityContext/Image.
    🐳 paperless-ngx-webserver
      😱 [POP-205] Pod was restarted (11) times.
      😱 [POP-306] Container could be running as root user. Check SecurityContext/Image.
    🐳 smb-server
      😱 [POP-101] Image tagged "latest" in use.
      😱 [POP-306] Container could be running as root user. Check SecurityContext/Image.


SUMMARY
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
Your cluster score: F (0)
                                                                                S          .-'-.
                                                                                 o     __| F    `\
                                                                                  S   `-,-`--._   `\
                                                                                 []  .->'  O     `|-'
                                                                                  `=/ (__/_       /
                                                                                    \_,    `    _)
                                                                                       `----;  |


Versions (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS
  • Popeye v0.21.6
  • K8s v1.31.4

Log content

/tmp/popeye.log

3:35PM DBG Connecting to API Server https://flatcar04:6443
3:35PM DBG Loading raw config from flags...
3:35PM DBG Lint 18.17541ms
3:35PM ERR 💥 no linters matched query. check section selector
3:35PM ERR goroutine 1 [running]:
runtime/debug.Stack()
        /usr/local/go/src/runtime/debug/stack.go:26 +0x5e
github.com/derailed/popeye/pkg.BailOut({0x4150940, 0xc0009527c0})
        /home/olivier/go/pkg/mod/github.com/derailed/popeye@v0.21.6/pkg/helpers.go:24 +0x10f
github.com/derailed/popeye/cmd.doIt.func1()
        /home/olivier/go/pkg/mod/github.com/derailed/popeye@v0.21.6/cmd/root.go:59 +0x7e
panic({0x379bb00?, 0xc0009527c0?})
        /usr/local/go/src/runtime/panic.go:785 +0x132
github.com/derailed/popeye/cmd.bomb({0x4150940?, 0xc000952710?})
        /home/olivier/go/pkg/mod/github.com/derailed/popeye@v0.21.6/cmd/root.go:88 +0xdb
github.com/derailed/popeye/cmd.doIt(0xc000822000?, {0x3c40a73?, 0x4?, 0x3c40a77?})
        /home/olivier/go/pkg/mod/github.com/derailed/popeye@v0.21.6/cmd/root.go:74 +0xf0
github.com/spf13/cobra.(*Command).execute(0x59cc940, {0xc000140010, 0x4, 0x4})
        /home/olivier/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x59cc940)
        /home/olivier/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
        /home/olivier/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/derailed/popeye/cmd.Execute(...)
        /home/olivier/go/pkg/mod/github.com/derailed/popeye@v0.21.6/cmd/root.go:48
main.main()
        /home/olivier/go/pkg/mod/github.com/derailed/popeye@v0.21.6/main.go:12 +0x1b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions