MCPcopy Create free account
hub / github.com/coderanger/migrations-operator / InitInjector

Function InitInjector

webhook/webhook.go:47–51  ·  view source on GitHub ↗
(mgr ctrl.Manager)

Source from the content-addressed store, hash-verified

45}
46
47func 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.
54func (hook *initInjector) Handle(ctx context.Context, req admission.Request) admission.Response {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected