Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 71 for PodRunning (0.27 sec)

  1. pilot/pkg/serviceregistry/serviceregistry_test.go

    	// events - since PodIP will be "".
    	newPod.Status.PodIP = pod.Status.PodIP
    	newPod.Status.PodIPs = []v1.PodIP{
    		{
    			IP: pod.Status.PodIP,
    		},
    	}
    	newPod.Status.Phase = v1.PodRunning
    
    	// Also need to sets the pod to be ready as now we only add pod into service entry endpoint when it's ready
    	setPodReady(newPod)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  2. pkg/api/v1/pod/util_test.go

    			expected: true,
    		},
    		{
    			podPhase: v1.PodUnknown,
    			expected: false,
    		},
    		{
    			podPhase: v1.PodPending,
    			expected: false,
    		},
    		{
    			podPhase: v1.PodRunning,
    			expected: false,
    		},
    		{
    			expected: false,
    		},
    	}
    
    	for i, test := range tests {
    		pod := newPod(now, true, 0)
    		pod.Status.Phase = test.podPhase
    		isTerminal := IsPodTerminal(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  3. pkg/registry/core/pod/strategy_test.go

    			expectMatch:   false,
    		},
    		{
    			in: &api.Pod{
    				Status: api.PodStatus{Phase: api.PodRunning},
    			},
    			fieldSelector: fields.ParseSelectorOrDie("status.phase=Running"),
    			expectMatch:   true,
    		},
    		{
    			in: &api.Pod{
    				Status: api.PodStatus{Phase: api.PodRunning},
    			},
    			fieldSelector: fields.ParseSelectorOrDie("status.phase=Pending"),
    			expectMatch:   false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    		// One or more containers has not been started
    		return v1.PodPending
    	case running > 0 && unknown == 0:
    		// All containers have been started, and at least
    		// one container is running
    		return v1.PodRunning
    	case running == 0 && stopped > 0 && unknown == 0:
    		// The pod is terminal so its containers won't be restarted regardless
    		// of the restart policy.
    		if podIsTerminal {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/types_test.go

    					Name:      "c1",
    					Resources: v1.ResourceRequirements{Requests: v1.ResourceList{v1.ResourceCPU: cpu500m, v1.ResourceMemory: mem500M}},
    				},
    			},
    		},
    		Status: v1.PodStatus{
    			Phase:  v1.PodRunning,
    			Resize: "",
    			ContainerStatuses: []v1.ContainerStatus{
    				{
    					Name:               "c1",
    					AllocatedResources: v1.ResourceList{v1.ResourceCPU: cpu500m, v1.ResourceMemory: mem500M},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_set_utils_test.go

    	set := newStatefulSet(3)
    	pod := newStatefulSetPod(set, 1)
    	if isRunningAndReady(pod) {
    		t.Error("isRunningAndReady does not respect Pod phase")
    	}
    	pod.Status.Phase = v1.PodRunning
    	if isRunningAndReady(pod) {
    		t.Error("isRunningAndReady does not respect Pod condition")
    	}
    	condition := v1.PodCondition{Type: v1.PodReady, Status: v1.ConditionTrue}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet.go

    	// since kubelet first saw the pod if firstSeenTime is set.
    	existingStatus, ok := kl.statusManager.GetPodStatus(pod.UID)
    	if !ok || existingStatus.Phase == v1.PodPending && apiPodStatus.Phase == v1.PodRunning &&
    		!firstSeenTime.IsZero() {
    		metrics.PodStartDuration.Observe(metrics.SinceInSeconds(firstSeenTime))
    	}
    
    	kl.statusManager.SetPodStatus(pod, apiPodStatus)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  8. pkg/controller/job/job_controller.go

    	if job.Spec.Template.Spec.RestartPolicy != v1.RestartPolicyOnFailure {
    		return false
    	}
    	result := int32(0)
    	for i := range pods {
    		po := pods[i]
    		if po.Status.Phase == v1.PodRunning || po.Status.Phase == v1.PodPending {
    			for j := range po.Status.InitContainerStatuses {
    				stat := po.Status.InitContainerStatuses[j]
    				result += stat.RestartCount
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  9. pkg/apis/core/types.go

    	// pulling images onto the host.
    	PodPending PodPhase = "Pending"
    	// PodRunning means the pod has been bound to a node and all of the containers have been started.
    	// At least one container is still running or is in the process of being restarted.
    	PodRunning PodPhase = "Running"
    	// PodSucceeded means that all containers in the pod have voluntarily terminated
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  10. pkg/printers/internalversion/printers_test.go

    			api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "test1"},
    				Spec:       api.PodSpec{Containers: make([]api.Container, 2)},
    				Status: api.PodStatus{
    					Phase: api.PodRunning,
    					ContainerStatuses: []api.ContainerStatus{
    						{Ready: true, RestartCount: 3, State: api.ContainerState{Running: &api.ContainerStateRunning{}}},
    						{RestartCount: 3},
    					},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
Back to top