Webhooks validation execution details
Note the following points.
A Webhook is an HTTP call back: An HTTP POST that occurs when an event-notification is sent through HTTP POST. A web application implementing Webhooks will POST a message to a URL when certain tasks happen.
Webhooks are called when the following command is applied to create/update the environment to validate the CR input provided into the yaml file:
kubectl apply -f sample/environment.yaml
Webhook validates each check in sequence. Even if one of the validation fails then a validation error is displayed and the execution is stopped.
The error must be fixed and the
environment.yamlfile must be applied so that the next validation check is performed.The environment is created only after webhook validations are passed.