You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a command like this k8sgpt analyze --namespace default --filter PolicyReport I expect to see only the failed PolicyReports of that namespace.
Actual behaviour
The --namespace flag is ignored by the PolicyReport filter, so failed PolicyReports are presented from every namespace.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Checklist
Affected Components
K8sGPT Version
v0.3.48
Kubernetes Version
v1.30.6
Host OS and its Version
MacOS
Steps to reproduce
Prerequisite is to have Kyverno running on the cluster with a policy like this https://kyverno.io/policies/other/block-stale-images/block-stale-images/.
At this point, you should have failed policies in both namespaces.
Expected behaviour
When running a command like this
k8sgpt analyze --namespace default --filter PolicyReport
I expect to see only the failed PolicyReports of that namespace.Actual behaviour
The
--namespace
flag is ignored by the PolicyReport filter, so failed PolicyReports are presented from every namespace.Additional Information
No response
The text was updated successfully, but these errors were encountered: