Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StopContainer (0.31 sec)

  1. pkg/kubelet/kuberuntime/instrumented_services.go

    	recordError(operation, err)
    	return err
    }
    
    func (in instrumentedRuntimeService) StopContainer(ctx context.Context, containerID string, timeout int64) error {
    	const operation = "stop_container"
    	defer recordOperation(operation, time.Now())
    
    	err := in.service.StopContainer(ctx, containerID, timeout)
    	recordError(operation, err)
    	return err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    	})
    	fakeRuntime.SetFakeContainers(fakeContainers)
    
    	err = m.containerGC.evictContainers(ctx, defaultGCPolicy, true, false)
    	assert.NoError(t, err)
    
    	assert.Contains(t, fakeRuntime.GetCalls(), "StopContainer", "RemoveContainer",
    		"container in unknown state should be stopped before being removed")
    
    	remain, err := fakeRuntime.ListContainers(ctx, nil)
    	assert.NoError(t, err)
    	assert.Empty(t, remain)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top