kubernetes-sigs / prometheus-adapter

An implementation of the custom.metrics.k8s.io API using Prometheus
Apache License 2.0
1.9k stars 551 forks source link

Orphan ClusterRole resource-metrics-server-resources deployed #675

Open zyue110026 opened 1 month ago

zyue110026 commented 1 month ago

We have noticed an instance of an orphan resource in one of your Kubernetes configuration files. Deploying Kubernetes resources that are not being actively used or referenced by any other resources in the cluster can lead to orphan resources. These orphan resources consume unnecessary resources and can potentially cause confusion or clutter within the cluster. Additionally, we provide anecdotal evidence from topolvm-topolvm#484 regarding the orphan resource defect.

What happened?:

ClusterRole resource-metrics-server-resources does not have any cluster role binding.

What did you expect to happen?:

resource-metrics-server-resources role should have a role binding, otherwise it is a orphan resource. Or delete resource-metrics-server-resources to avoid deploy orphan resource.

Anything else we need to know?:

Environment:

dgrisonnet commented 1 month ago

/assign @zyue110026 /triage accepted