From a81d80885d970e0590a276e7bb322e0fa5d8c186 Mon Sep 17 00:00:00 2001 From: luomingmeng Date: Mon, 17 Nov 2025 20:34:02 +0800 Subject: [PATCH] feat(config): add EnableShareGPU field to ReclaimResourceIndicators Add new field to enable sharing GPU resources with other reclaimed_cores pods when set to true. Defaults to false if not specified. --- pkg/apis/config/v1alpha1/adminqos.go | 6 ++++++ pkg/apis/config/v1alpha1/zz_generated.deepcopy.go | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/pkg/apis/config/v1alpha1/adminqos.go b/pkg/apis/config/v1alpha1/adminqos.go index a4b26b58..817ae4c5 100644 --- a/pkg/apis/config/v1alpha1/adminqos.go +++ b/pkg/apis/config/v1alpha1/adminqos.go @@ -873,6 +873,12 @@ type ReclaimResourceIndicators struct { // If not set, the default value is DisableReclaimLevelPod. // +optional DisableReclaimLevel *DisableReclaimLevel `json:"disableReclaimLevel,omitempty"` + + // EnableShareGPU specifies whether to enable share GPU resources. + // If set to true, GPU resources will be shared with other reclaimed_cores pods. + // If not set, the default value is false. + // +optional + EnableShareGPU *bool `json:"enableShareGPU,omitempty"` } // DisableReclaimLevel defines the level at which reclaim resources are disabled. diff --git a/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go index 91f03d7d..31b2cf51 100644 --- a/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go @@ -2208,6 +2208,11 @@ func (in *ReclaimResourceIndicators) DeepCopyInto(out *ReclaimResourceIndicators *out = new(DisableReclaimLevel) **out = **in } + if in.EnableShareGPU != nil { + in, out := &in.EnableShareGPU, &out.EnableShareGPU + *out = new(bool) + **out = **in + } return }