Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Indicate number of nodes that an NVIDIADriver CR matches

未关闭
#2,980 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@mrhillsman 已经在做这个了。

开始于 2026年9月30日。

  • #2989 来自 @mrhillsman —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

dsx-ws-0930 good-first-issue

NVIDIADriver CR status should show how many nodes it's nodeSelector matches. For example, the below CR matches zero nodes, but one would not know that by looking at it's status.

apiVersion: nvidia.com/v1alpha1
kind: NVIDIADriver
metadata:
  name: driver-r595
spec:
  default: false
  driverType: gpu
  image: driver
  kernelModuleType: auto
  nodeSelector:
    nvidia.com/test: "false"
  repository: nvcr.io/nvidia
  version: 595.91.07
status:
  conditions:
  - lastTransitionTime: "2026-09-29T13:52:01Z"
    message: All resources have been successfully reconciled
    reason: Reconciled
    status: "True"
    type: Ready
  - lastTransitionTime: "2026-09-29T13:52:01Z"
    message: ""
    reason: Ready
    status: "False"
    type: Error
  state: ready

A new status field, like below, can be added to the NVIDIADriver CRD:

// +kubebuilder:printcolumn:name="Nodes",type=integer,JSONPath=`.status.matchedNodeCount`
// MatchedNodeCount is the number of eligible GPU nodes currently assigned
// to this NVIDIADriver.
MatchedNodeCount int32 `json:"matchedNodeCount"`

An example output from kubectl get nvidiadriver would be:

NAME          STATUS   DEFAULT   NODES   AGE
h100-driver   ready    false     0       2m
default       ready    true      5       1h
主要语言
Go
星标
2.9k
派生
569
平均合并
1 天 10 小时
30 天内合并 PR
78

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/gpu-operator 的其他 Issue

查看 NVIDIA/gpu-operator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。