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

Struct initInjector

webhook/webhook.go:42–45  ·  view source on GitHub ↗

+kubebuilder:webhook:path=/mutate-v1-pod,mutating=true,failurePolicy=ignore,sideEffects=None,groups="",resources=pods,verbs=create;update,versions=v1,name=mpod.migrations.coderanger.net,admissionReviewVersions=v1beta1 initInjector injects migration initContainers into Pods

Source from the content-addressed store, hash-verified

40
41// initInjector injects migration initContainers into Pods
42type initInjector struct {
43 Client client.Client
44 decoder *admission.Decoder
45}
46
47func InitInjector(mgr ctrl.Manager) error {
48 hookServer := mgr.GetWebhookServer()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected