Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for ContainerStateRunning (0.27 sec)

  1. pkg/kubelet/pleg/generic_test.go

    				createTestContainer("c1", kubecontainer.ContainerStateRunning),
    				createTestContainer("c2", kubecontainer.ContainerStateUnknown),
    				createTestContainer("c3", kubecontainer.ContainerStateUnknown),
    			},
    			Sandboxes: []*kubecontainer.Container{
    				createTestContainer("s1", kubecontainer.ContainerStateRunning),
    				createTestContainer("s2", kubecontainer.ContainerStateRunning),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  2. pkg/kubelet/prober/prober_manager_test.go

    		ContainerID: "test://unprobed_container_id",
    		State: v1.ContainerState{
    			Running: &v1.ContainerStateRunning{},
    		},
    	}
    	probedReady := v1.ContainerStatus{
    		Name:        "probed_container_ready",
    		ContainerID: "test://probed_container_ready_id",
    		State: v1.ContainerState{
    			Running: &v1.ContainerStateRunning{},
    		},
    	}
    	probedPending := v1.ContainerStatus{
    		Name:        "probed_container_pending",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. pkg/kubelet/pleg/evented.go

    		if sandboxState == kubecontainer.ContainerStateRunning {
    			metrics.RunningPodCount.Inc()
    		}
    	} else {
    		oldSandboxState := getPodSandboxState(cachedPodStatus)
    		currentSandboxState := getPodSandboxState(podStatus)
    
    		if oldSandboxState == kubecontainer.ContainerStateRunning && currentSandboxState != kubecontainer.ContainerStateRunning {
    			metrics.RunningPodCount.Dec()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/helpers_test.go

    				ExitCode: 0,
    			},
    			isFailed:    false,
    			description: "Init container in exited state and zero exit code should return false",
    		},
    		{
    			status: &kubecontainer.Status{
    				State: kubecontainer.ContainerStateRunning,
    			},
    			isFailed:    false,
    			description: "Init container in running state should return false",
    		},
    		{
    			status: &kubecontainer.Status{
    				State: kubecontainer.ContainerStateCreated,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. pkg/printers/internalversion/printers_test.go

    						{
    							Ready:        true,
    							RestartCount: 0,
    							State:        api.ContainerState{Running: &api.ContainerStateRunning{}},
    						},
    						{
    							Ready:                true,
    							RestartCount:         3,
    							State:                api.ContainerState{Running: &api.ContainerStateRunning{}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  6. pkg/kubelet/runonce.go

    func (kl *Kubelet) isPodRunning(pod *v1.Pod, status *kubecontainer.PodStatus) bool {
    	for _, c := range pod.Spec.Containers {
    		cs := status.FindContainerStatusByName(c.Name)
    		if cs == nil || cs.State != kubecontainer.ContainerStateRunning {
    			klog.InfoS("Container not running", "pod", klog.KObj(pod), "containerName", c.Name)
    			return false
    		}
    	}
    	return true
    }
    
    // getFailedContainer returns failed container name for pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  7. pkg/controller/job/backoff_utils_test.go

    								Terminated: &v1.ContainerStateTerminated{FinishedAt: metav1.NewTime(defaultTestTime.Add(-1 * time.Second))},
    							},
    						},
    						{
    							State: v1.ContainerState{
    								Running: &v1.ContainerStateRunning{},
    							},
    						},
    						{
    							State: v1.ContainerState{
    								Terminated: &v1.ContainerStateTerminated{FinishedAt: metav1.NewTime(defaultTestTime.Add(-2 * time.Second))},
    							},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    				ContainerStatuses: []v1.ContainerStatus{
    					{
    						Name:        "fakeContainerName",
    						ContainerID: "docker://fakeContainerID",
    						State: v1.ContainerState{
    							Running: &v1.ContainerStateRunning{},
    						},
    					},
    				},
    			},
    			pspFound:  true,
    			updateErr: nil,
    			stAssignments: state.ContainerCPUAssignments{
    				"fakePodUID": map[string]cpuset.CPUSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  9. pkg/kubelet/container/helpers.go

    	// NOTE(random-liu): If all historical containers were GC'd, we'll also return true here.
    	if status == nil {
    		return true
    	}
    	// Check whether container is running
    	if status.State == ContainerStateRunning {
    		return false
    	}
    	// Always restart container in the unknown, or in the created state.
    	if status.State == ContainerStateUnknown || status.State == ContainerStateCreated {
    		return true
    	}
    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/kuberuntime/kuberuntime_container_test.go

    				CreatedAt: createdAt,
    				StartedAt: startedAt,
    			},
    			expected: &kubecontainer.Status{
    				ID:        *cid,
    				Image:     imageSpec.Image,
    				State:     kubecontainer.ContainerStateRunning,
    				CreatedAt: time.Unix(0, createdAt),
    				StartedAt: time.Unix(0, startedAt),
    			},
    		},
    		"exited container": {
    			input: &runtimeapi.ContainerStatus{
    				Id:         cid.ID,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
Back to top