resmoio / kubernetes-event-exporter

Export Kubernetes events to multiple destinations with routing and filtering
Apache License 2.0
753 stars 149 forks source link

feature: add `ownerReferences` to the exported events #143

Closed ronaknnathani closed 9 months ago

ronaknnathani commented 9 months ago

We have a use case where we need to emit events for objects and also capture the object's ownerReferences. I see that the event exporter already enhances the events with labels and annotations. The same struct can be used to also capture ownerReferences.

What do the maintainers think about this feature? We'd be happy to contribute this change.

mustafaakin commented 9 months ago

Of course, is already available in the call we make, why not?

ronaknnathani commented 9 months ago

Great! I can send a PR for this.

ronaknnathani commented 9 months ago

@mustafaakin created https://github.com/resmoio/kubernetes-event-exporter/pull/144. I have some more changes in the PR in addition to adding ownerReferences. Let me know what you think. Happy to iterate as needed.