From 6e7ae70959203b2cc274de0913eb9a41bdf9821d Mon Sep 17 00:00:00 2001 From: Karthik Date: Fri, 4 Sep 2026 18:51:56 -0400 Subject: [PATCH] Sync ComputeDomain CRD with DRA driver v0.5.0 schema (cherry picked from commit 08c40bc479192e3d5a82b7fd41d7e85a7197741f) Signed-off-by: Tariq Ibrahim --- bundle/manifests/resource.nvidia.com_computedomains.yaml | 5 +++-- .../crds/resource.nvidia.com_computedomains.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bundle/manifests/resource.nvidia.com_computedomains.yaml b/bundle/manifests/resource.nvidia.com_computedomains.yaml index 5a28ae17ca..0811b3ce2c 100644 --- a/bundle/manifests/resource.nvidia.com_computedomains.yaml +++ b/bundle/manifests/resource.nvidia.com_computedomains.yaml @@ -66,12 +66,13 @@ spec: - resourceClaimTemplate type: object numNodes: + default: 0 description: |- Intended number of IMEX daemons (i.e., individual compute nodes) in the ComputeDomain. Must be zero or greater. With `featureGates.IMEXDaemonsWithDNSNames=true` (the default), this is - recommended to be set to zero. Workload must implement and consult its + recommended to be set to zero (default). Workload must implement and consult its own source of truth for the number of workers online before trying to share GPU memory (and hence triggering IMEX interaction). When non-zero, `numNodes` is used only for automatically updating the global @@ -91,10 +92,10 @@ spec: The `numNodes` parameter is deprecated and will be removed in the next API version. + minimum: 0 type: integer required: - channel - - numNodes type: object x-kubernetes-validations: - message: A computeDomain.spec is immutable diff --git a/deployments/gpu-operator/crds/resource.nvidia.com_computedomains.yaml b/deployments/gpu-operator/crds/resource.nvidia.com_computedomains.yaml index 5a28ae17ca..0811b3ce2c 100644 --- a/deployments/gpu-operator/crds/resource.nvidia.com_computedomains.yaml +++ b/deployments/gpu-operator/crds/resource.nvidia.com_computedomains.yaml @@ -66,12 +66,13 @@ spec: - resourceClaimTemplate type: object numNodes: + default: 0 description: |- Intended number of IMEX daemons (i.e., individual compute nodes) in the ComputeDomain. Must be zero or greater. With `featureGates.IMEXDaemonsWithDNSNames=true` (the default), this is - recommended to be set to zero. Workload must implement and consult its + recommended to be set to zero (default). Workload must implement and consult its own source of truth for the number of workers online before trying to share GPU memory (and hence triggering IMEX interaction). When non-zero, `numNodes` is used only for automatically updating the global @@ -91,10 +92,10 @@ spec: The `numNodes` parameter is deprecated and will be removed in the next API version. + minimum: 0 type: integer required: - channel - - numNodes type: object x-kubernetes-validations: - message: A computeDomain.spec is immutable