Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature]: Allow custom ServiceAccount for DCGM Exporter DaemonSet

Đang mở
#2,729 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@100-JM đang làm issue này rồi.

Từ ngày 9/9/2026.

  • #2870 của @100-JM — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, helm, kubernetes
Lĩnh vực
infrastructure

Hướng nghiên cứu

Bắt đầu với DCGMExporterSpec và TransformDCGMExporter, sau đó kiểm tra assets/state-dcgm-exporter/0100_service_account.yaml và 0800_daemonset.yaml. Theo dõi đường dẫn cấu hình của ClusterPolicy và Helm, bao gồm các tài nguyên Role và ClusterRoleBinding. Được xem là hoàn tất khi tên tùy chỉnh và hành vi tạo hoạt động trong namespace của operator, trong khi cấu hình không được thiết lập vẫn giữ nguyên hành vi ServiceAccount hiện có và giới hạn theo namespace được ghi lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

feature lifecycle/frozen needs-triage

Problem

GPU Operator hardcodes the DCGM Exporter ServiceAccount to nvidia-dcgm-exporter (assets + DaemonSet). DCGMExporterSpec has no serviceAccount / serviceAccountName field, and TransformDCGMExporter never overrides it. Helm/ClusterPolicy cannot change it; patches are reverted on reconcile.

Request

Add ClusterPolicy/Helm support to configure the DCGM Exporter SA, with default behavior unchanged:

dcgmExporter:
  serviceAccount:
    create: false                 # true = operator creates SA (current behavior)
    name: my-metrics-identity     # default: nvidia-dcgm-exporter
  • Default unset → keep creating/using nvidia-dcgm-exporter (backward compatible).
  • create: false → use an existing SA in the operator namespace; bind Role/ClusterRoleBindings to that SA.
  • Document that SAs are namespaced (cross-namespace SA is out of scope).

Why

Enterprise platforms bind identity/PKI/IRSA/Workload Identity to a specific SA name. Without this, users must run a standalone exporter, vendor-patch the operator, or use fragile admission mutators.

Pros

  • Keep using the operator-managed DCGM Exporter (no parallel DaemonSet).
  • Fit org identity/IAM/PKI SA naming requirements.
  • Align with existing per-component knobs (dcgmExporter.annotations, env, serviceMonitor).
  • Backward compatible; reduces forks/mutators/reconcile fights.

References

Ngôn ngữ chính
Go
Star
2.9k
Fork
576
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
69

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/gpu-operator

Tất cả issue của NVIDIA/gpu-operator

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.