vmware-archive / kubewatch

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

Extracting resource name/type/labels for webhook #252

Open mcrivar opened 3 years ago

mcrivar commented 3 years ago

Hi, I wanted to know if its possible to extract some parameters from the resource I have the listener setup to. e.g callback for the resource type/name/labels/action/namespace and use them as parameters to the executed webhook(url/slack..)?

aantn commented 3 years ago

Not the maintainer, but I'm working on a PR for this. Right now I'm sending the whole resource as json. What is your usecase and does adding the entire resource to the json send to the webhook help?