diff --git a/pkg/steering/controller.go b/pkg/steering/controller.go index 3c0b404..576da5a 100644 --- a/pkg/steering/controller.go +++ b/pkg/steering/controller.go @@ -202,7 +202,8 @@ func (c *Controller) Objects() []*events.Object { defer c.muObjects.RUnlock() res := make([]*events.Object, 0, len(c.objects)) for _, o := range c.objects { - res = append(res, o) + oCpy := o + res = append(res, oCpy) } zap.S().Debugf("copy object from %v to %v", c.objects, res) return res