Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 283 for containerId (0.24 sec)

  1. pkg/kubelet/container/testing/fake_runtime.go

    	pod.Spec.Containers = append(pod.Spec.Containers, container)
    	for _, c := range pod.Spec.Containers {
    		if c.Name == container.Name { // Container already in the pod.
    			return f.Err
    		}
    	}
    	pod.Spec.Containers = append(pod.Spec.Containers, container)
    	return f.Err
    }
    
    func (f *FakeRuntime) KillContainerInPod(container v1.Container, pod *v1.Pod) error {
    	f.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. pkg/kubelet/prober/results/results_manager_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/wait"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    )
    
    func TestCacheOperations(t *testing.T) {
    	m := NewManager()
    
    	unsetID := kubecontainer.ContainerID{Type: "test", ID: "unset"}
    	setID := kubecontainer.ContainerID{Type: "test", ID: "set"}
    
    	_, found := m.Get(unsetID)
    	assert.False(t, found, "unset result found")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 02 10:55:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_logs.go

    	v1 "k8s.io/api/core/v1"
    	"k8s.io/cri-client/pkg/logs"
    	"k8s.io/klog/v2"
    )
    
    // ReadLogs read the container log and redirect into stdout and stderr.
    // Note that containerID is only needed when following the log, or else
    // just pass in empty string "".
    func (m *kubeGenericRuntimeManager) ReadLogs(ctx context.Context, path, containerID string, apiOpts *v1.PodLogOptions, stdout, stderr io.Writer) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/memorymanager/memory_manager.go

    func (m *manager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    	m.Lock()
    	defer m.Unlock()
    
    	m.containerMap.Add(string(pod.UID), container.Name, containerID)
    
    	// Since we know that each init container always runs to completion before
    	// the next container starts, we can safely remove references to any previously
    	// started init containers. This will free up the memory from these init containers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 00:50:45 UTC 2023
    - 17.1K bytes
    - Viewed (1)
  5. cni/pkg/nodeagent/podcgroupns.go

    	var podUID types.UID
    	var containerID string
    	for _, cgroup := range cgroups {
    		candidatePodUID, candidateContainerID, ok := getPodUIDAndContainerIDFromCGroupPath(cgroup.GroupPath)
    		switch {
    		case !ok:
    			// Cgroup did not contain a container ID.
    			continue
    		case containerID == "":
    			// This is the first container ID found so far.
    			podUID = candidatePodUID
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. pkg/kubelet/logs/container_log_manager.go

    	defer c.mutex.Unlock()
    	klog.V(4).InfoS("Starting container log rotation sequence")
    	// TODO(#59998): Use kubelet pod cache.
    	containers, err := c.runtimeService.ListContainers(ctx, &runtimeapi.ContainerFilter{})
    	if err != nil {
    		return fmt.Errorf("failed to list containers: %v", err)
    	}
    	for _, container := range containers {
    		// Only rotate logs for running containers. Non-running containers won't
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. pkg/kubelet/status/testing/mock_pod_status_provider.go

    func (m *MockManager) SetContainerReadiness(podUID types.UID, containerID container.ContainerID, ready bool) {
    	m.ctrl.T.Helper()
    	m.ctrl.Call(m, "SetContainerReadiness", podUID, containerID, ready)
    }
    
    // SetContainerReadiness indicates an expected call of SetContainerReadiness.
    func (mr *MockManagerMockRecorder) SetContainerReadiness(podUID, containerID, ready any) *gomock.Call {
    	mr.mock.ctrl.T.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/containers/GradleContainer.groovy

                throw new IllegalStateException("execInContainer can only be used while the Container is running");
            }
            def containerId = containerInfo.id
            def dockerClient = DockerClientFactory.instance().client()
            dockerClient.execCreateCmd(containerId).withCmd(command)
            def execCreateCmdResponse = dockerClient
                .execCreateCmd(containerId)
                .withAttachStdout(true)
                .withAttachStderr(true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. pkg/kubelet/userns/userns_manager.go

    	for _, u := range userNs.UIDMappings {
    		uids = append(uids, &runtimeapi.IDMapping{
    			HostId:      u.HostId,
    			ContainerId: u.ContainerId,
    			Length:      u.Length,
    		})
    	}
    	for _, g := range userNs.GIDMappings {
    		gids = append(gids, &runtimeapi.IDMapping{
    			HostId:      g.HostId,
    			ContainerId: g.ContainerId,
    			Length:      g.Length,
    		})
    	}
    
    	return &runtimeapi.UserNamespace{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/topologymanager/topology_manager.go

    	m.scope.AddHintProvider(h)
    }
    
    func (m *manager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    	m.scope.AddContainer(pod, container, containerID)
    }
    
    func (m *manager) RemoveContainer(containerID string) error {
    	return m.scope.RemoveContainer(containerID)
    }
    
    func (m *manager) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 12:43:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top