Skip to content

Commit

Permalink
fix(eventsource/resource): return entire event object instead of just…
Browse files Browse the repository at this point in the history
… event.obj (#980)

Signed-off-by: Scott Weitzner <[email protected]>
  • Loading branch information
scottweitzner authored Dec 3, 2020
1 parent 2d1b328 commit ab4f16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventsources/sources/resource/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byt
for {
select {
case event := <-informerEventCh:
objBody, err := json.Marshal(event.Obj)
objBody, err := json.Marshal(event)
if err != nil {
log.Desugar().Error("failed to marshal the resource, rejecting the event...", zap.Error(err))
continue
Expand Down

0 comments on commit ab4f16d

Please sign in to comment.