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

Method InjectDecoder

webhook/webhook.go:146–149  ·  view source on GitHub ↗

initInjector implements admission.DecoderInjector. A decoder will be automatically injected. InjectDecoder injects the decoder.

(d *admission.Decoder)

Source from the content-addressed store, hash-verified

144
145// InjectDecoder injects the decoder.
146func (hook *initInjector) InjectDecoder(d *admission.Decoder) error {
147 hook.decoder = d
148 return nil
149}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected