My goal is to only allow cronjobs in our Kubernetes clusters if they have a concurrencyPolicy of Replace. My research showed that ValidatingWebhookConfiguration is probably the solution. However, this is only a guess.
According to the documentation, for example, the following is possible with mutatingWebhook:
For a CREATE pod request, if the field .spec.containers.resources.limits of a container is not >set, set default resource limits.
I want to do something similar, but I don't know how. Therefore, I hope that someone here can at least give me a tip, source or solution.