Skip to content

Commit 19863b0

Browse files
authored
perf: Only deep copy nodes during GetCandidates once (#2233)
1 parent 246a485 commit 19863b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/disruption/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func NewCandidate(ctx context.Context, kubeClient client.Client, recorder events
106106
}
107107
}
108108
return &Candidate{
109-
StateNode: node.DeepCopy(),
109+
StateNode: node,
110110
instanceType: instanceType,
111111
NodePool: nodePool,
112112
capacityType: node.Labels()[v1.CapacityTypeLabelKey],

0 commit comments

Comments
 (0)