MCPcopy
hub / github.com/containerd/containerd / PostCreateContainer

Method PostCreateContainer

integration/nri_test.go:1010–1021  ·  view source on GitHub ↗
(ctx context.Context, pod *api.PodSandbox, ctr *api.Container)

Source from the content-addressed store, hash-verified

1008}
1009
1010func (m *mockPlugin) PostCreateContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) error {
1011 if !m.inNamespace(pod.Namespace) {
1012 return nil
1013 }
1014
1015 m.Log("PostCreateContainer %s/%s/%s", pod.Namespace, pod.Name, ctr.Name)
1016 m.pods[pod.Id] = pod
1017 m.ctrs[ctr.Id] = ctr
1018 m.q.Add(ContainerEvent(ctr, PostCreateContainer))
1019 m.postCreateContainer(m, pod, ctr)
1020 return nil
1021}
1022
1023func (m *mockPlugin) StartContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) error {
1024 if !m.inNamespace(pod.Namespace) {

Callers

nothing calls this directly

Calls 4

inNamespaceMethod · 0.95
LogMethod · 0.95
ContainerEventFunction · 0.85
AddMethod · 0.65

Tested by

no test coverage detected