vmware-archive / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
2.44k stars 442 forks source link

Add host field into the metadata in webhook handler #272

Open xco-sk opened 3 years ago

xco-sk commented 3 years ago

The Kubewatch event contains the Host field which seems to be correctly filled in for Pod resource type. Even though there is such a field present, the webhook (and other handlers) do not publish it. This feature adds the Host field into the EventMeta that are published through webhook handler.