Skip to content

[state-dcgm-exporter][clusterpolicy] remove pods from Role - #2726

Merged
tariq1890 merged 1 commit into
mainfrom
dcgm-exporter-rm-pods-role
Aug 10, 2026
Merged

[state-dcgm-exporter][clusterpolicy] remove pods from Role#2726
tariq1890 merged 1 commit into
mainfrom
dcgm-exporter-rm-pods-role

Conversation

@tariq1890

Copy link
Copy Markdown
Contributor

The ClusterRole already provides get, list and watch privileges to the dcgm-exporter daemonset. The privileges in the namespace-scoped are therefore redundant and unnecessary.

The ClusterRole already provides get, list and watch privileges to the
dcgm-exporter daemonset. The privileges in the namespace-scoped are therefore
redundant and unnecessary.

Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 38.385%. remained the same — dcgm-exporter-rm-pods-role into main

@rajathagasthya rajathagasthya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Technically, the reason this works is because DCGM exporter uses the pod-resources socket for GPU -> Pod mapping, so it doesn't require pods RBAC. And the ClusterRole is only rendered if pod enrichment is enabled, so with or without enrichment enabled this never did anything.

@tariq1890
tariq1890 enabled auto-merge August 10, 2026 20:30
@tariq1890
tariq1890 merged commit 6b50ae2 into main Aug 10, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants