-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter by namespace intermittently includes all namespaces #388
Comments
@abean-work Thank you for this great report! I can't seem to repro this using the latest on any of my clusters ;( |
@derailed thanks for your response. I've tested the repro steps with the latest version of Popeye, but I'm encountering a different issue now. When I use the
Debug logs:
However, if I use the This seems to be unrelated to the current issue. Would you prefer I open a new issue for this behaviour? |
Description:
When attempting to run Popeye against a namespace, it will intermittently (around half the time) fail due to problems in other namespaces.
To Reproduce
Steps to reproduce the behavior:
kubectl run fail-pod --image=nonexistent/nonexistentimage:latest -n test
popeye -n healthy -l error -f ./spinach.yml
Using the following (crude) command, I was able to reproduce the error easily:
The exit codes show that, in this instance, 9 out of 20 scans failed due to including resources from other namespaces. When repeating this command, the number of failures has always been between 8 and 12, so roughly half the time it fails.
Expected behavior
Versions (please complete the following information):
Additional context
Our team owns/manages a number of namespaces on shared Kubernetes (AKS) clusters, which we are scanning individually using the -n flag and then aggregating the JUnit output.
These namespaces are looped through, so the scans happen immediately after one another. I've tried adding sleeps between scans, but this didn't help.
This could be related to #314, but I've created a new issue as it does work some of the time.
Spinach config:
The text was updated successfully, but these errors were encountered: