Skip to content

Commit

Permalink
fix: wrong variable used
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Nov 12, 2024
1 parent 530c185 commit 0cd7da0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/kds/util/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ func toResources(resourceType model.ResourceType, krs []*mesh_proto.KumaResource
}
}
obj.SetMeta(&resourceMeta{
name: obj.GetMeta().GetName(),
mesh: obj.GetMeta().GetMesh(),
labels: maps.Clone(obj.GetMeta().GetLabels()),
name: kr.GetMeta().GetName(),
mesh: kr.GetMeta().GetMesh(),
labels: maps.Clone(kr.GetMeta().GetLabels()),
})
if err := list.AddItem(obj); err != nil {
return nil, err
Expand Down

0 comments on commit 0cd7da0

Please sign in to comment.