Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for ContainerStateRunning (0.32 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/core/v1/containerstaterunning.go

    // with apply.
    type ContainerStateRunningApplyConfiguration struct {
    	StartedAt *v1.Time `json:"startedAt,omitempty"`
    }
    
    // ContainerStateRunningApplyConfiguration constructs an declarative configuration of the ContainerStateRunning type for use with
    // apply.
    func ContainerStateRunning() *ContainerStateRunningApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/pod_container_deletor_test.go

    			},
    			{
    				ID:        kubecontainer.ContainerID{Type: "test", ID: "5"},
    				Name:      "bar",
    				CreatedAt: time.Now().Add(4 * time.Second),
    				State:     kubecontainer.ContainerStateRunning,
    			},
    		},
    	}
    
    	testCases := []struct {
    		containersToKeep           int
    		expectedContainersToDelete containerStatusbyCreatedList
    	}{
    		{
    			0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 19 15:48:08 UTC 2020
    - 5.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/cli-runtime/pkg/printers/template_test.go

    						{
    							Name: "foo",
    							State: v1.ContainerState{
    								Running: &v1.ContainerStateRunning{
    									StartedAt: metav1.Time{},
    								},
    							},
    						},
    						{
    							Name: "bar",
    							State: v1.ContainerState{
    								Running: &v1.ContainerStateRunning{
    									StartedAt: metav1.Time{},
    								},
    							},
    						},
    					},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 22 23:10:00 UTC 2019
    - 7.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top