Skip to content

Commit

Permalink
Remove deep-copying the allocatable resource list
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Jan 31, 2025
1 parent 1e21a7d commit 9dfaccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (i *InstanceType) precompute() {

func (i *InstanceType) Allocatable() corev1.ResourceList {
i.once.Do(i.precompute)
return i.allocatable.DeepCopy()
return i.allocatable
}

func (its InstanceTypes) OrderByPrice(reqs scheduling.Requirements) InstanceTypes {
Expand Down

0 comments on commit 9dfaccb

Please sign in to comment.