diff --git a/pkg/scheduler/framework/plugins/dynamicresources/nodeallocatabledynamicresources.go b/pkg/scheduler/framework/plugins/dynamicresources/nodeallocatabledynamicresources.go index d509445d7f4..02e754a6b61 100644 --- a/pkg/scheduler/framework/plugins/dynamicresources/nodeallocatabledynamicresources.go +++ b/pkg/scheduler/framework/plugins/dynamicresources/nodeallocatabledynamicresources.go @@ -171,9 +171,6 @@ func (pl *DynamicResources) buildNodeAllocatableDRAInfo(pod *v1.Pod, nodeAllocat quantity = resourceMap.AllocationMultiplier.DeepCopy() } - if currentClaimStatus.Resources == nil { - currentClaimStatus.Resources = make(map[v1.ResourceName]resource.Quantity) - } curQuantity, ok := currentClaimStatus.Resources[resourceName] if !ok { currentClaimStatus.Resources[resourceName] = quantity