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

Method Handle

webhook/webhook.go:54–60  ·  view source on GitHub ↗

initInjector adds migration wait initContainers if needed.

(ctx context.Context, req admission.Request)

Source from the content-addressed store, hash-verified

52
53// initInjector adds migration wait initContainers if needed.
54func (hook *initInjector) Handle(ctx context.Context, req admission.Request) admission.Response {
55 resp, err := hook.handleInner(ctx, req)
56 if err != nil {
57 return admission.Errored(http.StatusInternalServerError, err)
58 }
59 return *resp
60}
61
62func (hook *initInjector) handleInner(ctx context.Context, req admission.Request) (*admission.Response, error) {
63 log := ctrl.Log.WithName("webhooks").WithName("InitInjector")

Callers 1

StartMethod · 0.80

Calls 1

handleInnerMethod · 0.95

Tested by

no test coverage detected