Open AmitKumarDas opened 6 years ago
References:
What are admission webhooks? Admission webhooks are HTTP callbacks that receive admission requests and do something with them. You can define two types of admission webhooks, validating admission Webhook and mutating admission webhook. With validating admission Webhooks, you may reject requests to enforce custom admission policies. With mutating admission Webhooks, you may change requests to enforce custom defaults
Code in go
Links:
litmus-k8s-service
will be a service that runs a function which was passed as http request payload.litmus-k8s-service
may extract the file contents via ConfigMap
if filenames will be passed in the http request.litmus-k8s-service
may extract the function contents via ConfigMap
. The http request URL itself can hold the name of the function. Or the request schema can contain the name of the function.litmus-k8s-service
NOTE: These is otherwise known as lamdba expression or lambda function or web hook
Based on above concept, litmus will need a litmus service which can parse & execute the function as a declarative specification. We might build a litmus service from scratch and define the payload or we can build a Kubernetes custom resource and make use of an operator that does the job of a litmus service.
Below are few advantages of using a Kubernetes Custom Resource
:
Below are few disadvantages of using a Kubernetes Custom Resource
:
Assumption:
This issue tracks the feasibility of
mapping each statement to corresponding lambda function
executed as a web hook on a target container that exposes a hook service which understands these hooks. This hook service should have the ability to invoke kubectl commands.Why?
NOTE: