MCPcopy
hub / github.com/containerd/containerd / PostUpdateContainer

Method PostUpdateContainer

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

Source from the content-addressed store, hash-verified

1057}
1058
1059func (m *mockPlugin) PostUpdateContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) error {
1060 if !m.inNamespace(pod.Namespace) {
1061 return nil
1062 }
1063
1064 m.Log("PostUpdateContainer %s/%s/%s", pod.Namespace, pod.Name, ctr.Name)
1065 m.pods[pod.Id] = pod
1066 m.ctrs[ctr.Id] = ctr
1067 m.q.Add(ContainerEvent(ctr, PostUpdateContainer))
1068 m.postUpdateContainer(m, pod, ctr)
1069 return nil
1070}
1071
1072func (m *mockPlugin) StopContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) ([]*api.ContainerUpdate, error) {
1073 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