Lease metrics does not support --namespace
and --namespace-denylist
#2121
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
Command line options such as
--namespaces
and--namespaces-denylist
does not work against--resources=leases
, thoughLease
is a namespaced resource.What you expected to happen:
kube-state-metrics returns only metrics of leases in namespaces specified by
--namespaces
.How to reproduce it (as minimally and precisely as possible):
kube-system
, even if--namespaces=kube-system
is givenkube-system
namespace, even if--namespaces-denylist=kube-system
is givenAnything else we need to know?:
Environment:
kube-state-metrics, version v2.9.2 (branch: main, revision: 3fb1e86c)
kubectl version
):Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.2", GitCommit:"fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b", GitTreeState:"clean", BuildDate:"2023-02-22T13:32:22Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}
The text was updated successfully, but these errors were encountered: