You would be able to do that without yourself writing such an admission controller.
Take a look at this recent blog post:
especially the sample that is mutating pods to keep them from mounting secrets without explicitly specifying it:
So if you accept the added complexity of learning how to use the policy language, you can do this without code such a mutating admission controller self.
Iago Santos 2019-03-14 10:19:
Hi, I would like to create an admission controller in order to intercept the creation of a route and add a new annotation, could anyone give me a hint on how to do it?
users mailing list
users lists openshift redhat com