why admission webhook is not working in the CronJob example from kubebuilder book why admission webhook is not working in the CronJob example from kubebuilder book kubernetes kubernetes

why admission webhook is not working in the CronJob example from kubebuilder book


You must create ValidatingWebhookConfiguration in order to configure apiserver to forward request for validation to your webhook. You can find it here: https://github.com/kubernetes-sigs/kubebuilder/blob/master/docs/book/src/cronjob-tutorial/testdata/project/config/webhook/manifests.yaml