mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
controllers: simplify deepcopy calls
This commit is contained in:
@@ -621,11 +621,7 @@ func (rm *ReplicationManager) syncReplicationController(key string) error {
|
||||
}
|
||||
trace.Step("manageReplicas done")
|
||||
|
||||
copy, err := scheme.Scheme.DeepCopy(rc)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
rc = copy.(*v1.ReplicationController)
|
||||
rc = rc.DeepCopy()
|
||||
|
||||
newStatus := calculateStatus(rc, filteredPods, manageReplicasErr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user