Skip to content

Given namespace list but cannot list of namespaces #473

@rissanypro

Description

@rissanypro

Hello,

I'm trying to run x509-certificate exporter on a cluster where I am not admin. I have only access to a defined list of namespace.
So I have deployed it on one of my namespace and I give a list of namespace to scan:

includeNamespaces:
    - namespace1
    - namespace2
    - namespace3

But the app continue to try to list all namespace in the cluster.

time=2025-08-20T09:53:12.317+02:00 level=WARN msg="failed to list namespaces: namespaces is forbidden: User │
│  \"system:serviceaccount:namespace1:x509\" cannot list resource \"namespaces\" in API group \"\" at the clus │
│ ter scope"

Is there a way to configure x509 exporter to not list all namsepaces when I give a list of namespace ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions