MCPcopy Create free account
hub / github.com/containerd/containerd / RemovePodSandbox

Method RemovePodSandbox

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

Source from the content-addressed store, hash-verified

984}
985
986func (m *mockPlugin) RemovePodSandbox(ctx context.Context, pod *api.PodSandbox) error {
987 if !m.inNamespace(pod.Namespace) {
988 return nil
989 }
990
991 m.Log("RemovePodSandbox %s/%s", pod.Namespace, pod.Name)
992 delete(m.pods, pod.Id)
993 m.q.Add(PodSandboxEvent(pod, RemovePodSandbox))
994 return m.removePodSandbox(m, pod)
995}
996
997func (m *mockPlugin) CreateContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) (*api.ContainerAdjustment, []*api.ContainerUpdate, error) {
998 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