Skip to content

Commit

Permalink
chore: use deepCopyInto
Browse files Browse the repository at this point in the history
Signed-off-by: Armando Ruocco <[email protected]>
  • Loading branch information
armru committed Dec 18, 2024
1 parent 76915b8 commit b098e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/resources/status/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func PatchConditionsWithOptimisticLock(
return err
}

cluster.Status.Conditions = updatedCluster.Status.Conditions
updatedCluster.DeepCopyInto(cluster)

return nil
}); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/status/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UpdateAndRefresh(
return err
}

cluster.Status = updatedCluster.Status
updatedCluster.DeepCopyInto(cluster)

return nil
}); err != nil {
Expand Down

0 comments on commit b098e6a

Please sign in to comment.