k8sgpt-ai/k8sgpt

[BUG]: namespace filter works only with --filter flag

Opened this issue · 5 comments

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the behavior

Affected Components

  • K8sGPT (CLI)
  • K8sGPT Operator

K8sGPT Version

0.3.29

Kubernetes Version

1.26.0

Host OS and its Version

MacOS

Steps to reproduce

k8sgpt analyze --namespace=default

Expected behaviour

show all issues related only to namespace default

Actual behaviour

show all issues on cluster

Additional Information

k8sgpt analyze --filter=Service -n default
with --filter flag, namespace flag works.

can you please check this again?
because i think it --namespace option works as intended.

스크린샷 2024-03-26 오후 9 14 00

ofc
Screenshot 2024-03-26 at 14 00 30

namespace flag works partialy only. Show issues related to node and from integration trivy:
Screenshot 2024-03-26 at 15 59 40
After disabling integration filters. No issues except those related to nodes.

BTW, is no posible to disable trivy integration instaled with -s ( I have trivy operator installed separately) . I must remove filters to disable integration.
Screenshot 2024-03-26 at 16 01 49

Okay, thanks for the update - let's figure out that trivy issue separately.