diff --git a/agent/pkg/status/controller/generic/generic_object_emitter.go b/agent/pkg/status/controller/generic/generic_object_emitter.go index 347e71a54..8135461f7 100644 --- a/agent/pkg/status/controller/generic/generic_object_emitter.go +++ b/agent/pkg/status/controller/generic/generic_object_emitter.go @@ -34,13 +34,13 @@ func (e *genericObjectEmitter) Delete(object client.Object) bool { func ObjectEmitterWrapper(eventType enum.EventType, shouldUpdate func(client.Object) bool, tweakFunc func(client.Object), - specUpdate bool, + isSpecHandler bool, ) ObjectEmitter { eventData := genericpayload.GenericObjectBundle{} return NewGenericObjectEmitter( eventType, &eventData, - NewGenericObjectHandler(&eventData, specUpdate), + NewGenericObjectHandler(&eventData, isSpecHandler), WithShouldUpdate(shouldUpdate), WithTweakFunc(tweakFunc), )