-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Argument namespaces-denylist produces an error with v2.10.0 #2187
Comments
Thanks for the report! |
/triage accepted |
This should resolve the issue with namespace-denylist as discovered in kubernetes#2187 Regression introduced in kubernetes@c3c5528 Signed-off-by: Manuel Rüger <[email protected]>
Can you test with #2189 please? @BernhardGruen |
I can confirm that this version runs without an error message and I did not dig any further in the code but aren't there more non-namespaced objects that need that patch too like |
Yes that is correct. I wanted to verify that the change is resolving the issue before changing them as well :) edit: Likely someone else will take that over as I won't be able to do it before my travels. |
This should resolve the issue with namespace-denylist as discovered in kubernetes#2187 Regression introduced in kubernetes@c3c5528 Signed-off-by: Manuel Rüger <[email protected]>
This should resolve the issue with namespace-denylist as discovered in kubernetes#2187 Regression introduced in kubernetes@c3c5528 Signed-off-by: Manuel Rüger <[email protected]>
This should resolve the issue with namespace-denylist as discovered in kubernetes#2187 Regression introduced in kubernetes@c3c5528 Signed-off-by: Manuel Rüger <[email protected]>
This should resolve the issue with namespace-denylist as discovered in kubernetes#2187 Regression introduced in kubernetes@c3c5528 Signed-off-by: Manuel Rüger <[email protected]>
This should resolve the issue with namespace-denylist as discovered in kubernetes#2187 Regression introduced in kubernetes@c3c5528 Signed-off-by: Manuel Rüger <[email protected]>
What happened:
I upgraded kube-state-metrics from 2.9.2 to 2.10.0 on several clusters. On a single cluster it did not work as expected.
This is the error message I got there:
Also on that cluster metrics like
kube_node_info
do not exist anymore (this correlates to the error message aboutv1.Node
does not have a field labelmetadata.namespace
).There is a single difference in configuration - the use of
--namespaces-denylist=NAMESPACE_TO_EXCLUDE
. Therefore I assume that this configuration produces the error. If I remove that configuration option it also works on that exact cluster.What you expected to happen:
I expect to have metrics like
kube_node_info
and no exported metrics for namespaces on the denylist.How to reproduce it (as minimally and precisely as possible):
One just have to add the command line argument
--namespaces-denylist=NAMESPACE_TO_EXCLUDE
. It does not matter if the namespace exists or not.Environment:
kubectl version
): 1.27.x (also tested on 1.26.x)The text was updated successfully, but these errors were encountered: