MCPcopy
hub / github.com/containerd/containerd / stop

Method stop

integration/release_upgrade_linux_test.go:784–793  ·  view source on GitHub ↗

stop stops that pod.

(remove bool)

Source from the content-addressed store, hash-verified

782
783// stop stops that pod.
784func (pCtx *podTCtx) stop(remove bool) {
785 t := pCtx.t
786
787 t.Logf("Stopping pod %s", pCtx.id)
788 require.NoError(t, pCtx.rSvc.StopPodSandbox(pCtx.id))
789 if remove {
790 t.Logf("Removing pod %s", pCtx.id)
791 require.NoError(t, pCtx.rSvc.RemovePodSandbox(pCtx.id))
792 }
793}
794
795// criRuntimeInfo dumps CRI config.
796func criRuntimeInfo(t *testing.T, svc *remote.RuntimeService) map[string]any {

Calls 2

StopPodSandboxMethod · 0.65
RemovePodSandboxMethod · 0.65

Tested by

no test coverage detected