chaoskube icon indicating copy to clipboard operation
chaoskube copied to clipboard

Call an optional webhook before killing a pod

Open Miouge1 opened this issue 5 years ago • 4 comments

Call an optional POST webhook before killing a pod.

The webhook sends the PodSpec as a JSON payload to the webhook. This could allow an external webhook service to make an informed decision about killing the pod.

This could be used to have more complex logic or simply checking the Docker Hub status page.

Miouge1 avatar Sep 24 '19 09:09 Miouge1

It took a couple of tries, but I've added unit tests and fixed the comments from @golangcibot

Miouge1 avatar Sep 24 '19 14:09 Miouge1

@Miouge1 Interesting idea. I'll take a look.

linki avatar Oct 16 '19 15:10 linki

Merged in latest master.

linki avatar Nov 08 '19 10:11 linki

@linki thanks for the rebase, what do you think about the PR? Anything I can do to help?

Miouge1 avatar Nov 12 '19 12:11 Miouge1