NVIDIA / NVIDIA/gpu-operator

[Feature]: add webhook to validate nvidiadriver CR requests

Open
#2,282 0 comments 1 reaction 1 assignee View on GitHub

@abrarshivani is already working on this.

Since Aug 5, 2026.

feature lifecycle/frozen
Dominant language
Go
Stars
2.9k
Forks
552
Avg merge
2d 4h
Merged PRs (30d)
90

Description

Requestor: @rajathagasthya

Summary

Introduce a validating admission webhook for NVIDIA Driver Custom Resources (CRs) to detect and reject overlapping CR definitions, ensuring that only mutually exclusive NVIDIA Driver CRs are admitted into the cluster.

Motivation

In environments where multiple NVIDIA Driver CRs are defined, there is currently no safeguard preventing overlapping specifications (e.g., targeting the same nodes or GPUs). Multiple NVIDIA Driver CRs may unintentionally target the same set of nodes due to overlapping nodeSelector labels.

Proposal

Implement a Kubernetes validating admission webhook that intercepts CREATE and UPDATE operations for NVIDIA Driver CRs and enforces non-overlapping targeting rules.

The webhook will:

Evaluate the effective node selection criteria of the incoming CR
Compare it against all existing NVIDIA Driver CRs in the cluster
Detect overlaps in targeted node sets
Reject the request if any overlap is found

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.