MCPcopy
hub / github.com/containerd/containerd / PostUpdatePodSandbox

Method PostUpdatePodSandbox

integration/nri_test.go:964–973  ·  view source on GitHub ↗
(ctx context.Context, pod *api.PodSandbox)

Source from the content-addressed store, hash-verified

962}
963
964func (m *mockPlugin) PostUpdatePodSandbox(ctx context.Context, pod *api.PodSandbox) error {
965 if !m.inNamespace(pod.Namespace) {
966 return nil
967 }
968
969 m.Log("PostUpdatePodSandbox %s/%s", pod.Namespace, pod.Name)
970 m.pods[pod.Id] = pod
971 m.q.Add(PodSandboxEvent(pod, PostUpdatePodSandbox))
972 return m.postUpdatePodSandbox(m, pod)
973}
974
975func (m *mockPlugin) StopPodSandbox(ctx context.Context, pod *api.PodSandbox) error {
976 if !m.inNamespace(pod.Namespace) {

Callers

nothing calls this directly

Calls 4

inNamespaceMethod · 0.95
LogMethod · 0.95
PodSandboxEventFunction · 0.85
AddMethod · 0.65

Tested by

no test coverage detected