When using Kubernetes Admission Controllers ValidatingWebhookConfiguration, I'd like to skip the interception of internal requests such as Kubernetes Controllers.
More specifically, the only requests that I want the validation webhook to match are users' requests via the Kubctl/API, etc.
Is it possible?
According to Webhook request and response your webhook will receive an AdmissionRequest object which contains UserInfo field. In it, there are fields like
Username,Groupsand others that might be useful for solving your problem.