(mgr ctrl.Manager)
| 45 | } |
| 46 | |
| 47 | func InitInjector(mgr ctrl.Manager) error { |
| 48 | hookServer := mgr.GetWebhookServer() |
| 49 | hookServer.Register("/mutate-v1-pod", &webhook.Admission{Handler: &initInjector{Client: mgr.GetClient()}}) |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | // initInjector adds migration wait initContainers if needed. |
| 54 | func (hook *initInjector) Handle(ctx context.Context, req admission.Request) admission.Response { |
nothing calls this directly
no outgoing calls
no test coverage detected