Handler is the signature for the functions that ultimately deal with the admission request
func( context.Context, *k8s.MetadataAPI, *admissionv1beta1.AdmissionRequest, record.EventRecorder, ) (*admissionv1beta1.AdmissionResponse, error)
| 27 | // Handler is the signature for the functions that ultimately deal with |
| 28 | // the admission request |
| 29 | type Handler func( |
| 30 | context.Context, |
| 31 | *k8s.MetadataAPI, |
| 32 | *admissionv1beta1.AdmissionRequest, |
| 33 | record.EventRecorder, |
| 34 | ) (*admissionv1beta1.AdmissionResponse, error) |
| 35 | |
| 36 | // Server describes the https server implementing the webhook |
| 37 | type Server struct { |
nothing calls this directly
no outgoing calls
no test coverage detected