Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for PodRunning (0.21 sec)

  1. pkg/controller/job/job_controller_test.go

    			1, 1, 0,
    			false, []int32{0}, v1.PodRunning,
    			1, 0, 0, nil, "",
    		},
    		"backoffLimit 1 with restartCount 0 should have 1 pod active": {
    			1, 1, 1,
    			false, []int32{0}, v1.PodRunning,
    			1, 0, 0, nil, "",
    		},
    		"backoffLimit 1 with restartCount 1 and podRunning should have 0 pod active": {
    			1, 1, 1,
    			false, []int32{1}, v1.PodRunning,
    			0, 0, 1, &jobConditionFailed, "BackoffLimitExceeded",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal_test.go

    		reportedPodPhase:             []v1.PodPhase{v1.PodRunning, v1.PodRunning, v1.PodRunning, v1.PodRunning, v1.PodRunning, v1.PodRunning, v1.PodRunning},
    		reportedPodDeletionTimestamp: []bool{false, false, false, false, false, true, true},
    		recommendations:              []timestampedRecommendation{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_pods_test.go

    					},
    				},
    			},
    			false,
    			v1.PodRunning,
    			"all running",
    		},
    		{
    			&v1.Pod{
    				Spec: desiredState,
    				Status: v1.PodStatus{
    					ContainerStatuses: []v1.ContainerStatus{
    						stoppedState("containerA"),
    						stoppedState("containerB"),
    					},
    				},
    			},
    			false,
    			v1.PodRunning,
    			"all stopped with restart always",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_test.go

    	pods[2].Status.Phase = v1.PodRunning
    	pods[2].DeletionTimestamp = &now
    	pods[2].Status.ContainerStatuses = []v1.ContainerStatus{
    		{State: v1.ContainerState{
    			Running: &v1.ContainerStateRunning{
    				StartedAt: now,
    			},
    		}},
    	}
    
    	// pending and running pods are included
    	pods[3].Status.Phase = v1.PodPending
    	pods[4].Status.Phase = v1.PodRunning
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  5. pkg/scheduler/schedule_one_test.go

    			pods: []*v1.Pod{
    				st.MakePod().Name("pod1a").UID("pod1a").Label("foo", "").Node("node1").Phase(v1.PodRunning).Obj(),
    				st.MakePod().Name("pod1b").UID("pod1b").Label("foo", "").Node("node1").Phase(v1.PodRunning).Obj(),
    				st.MakePod().Name("pod2").UID("pod2").Label("foo", "").Node("node2").Phase(v1.PodRunning).Obj(),
    			},
    			wantNodes: sets.New("node2", "node3"),
    			wErr:      nil,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_set_control_test.go

    	if err != nil {
    		return nil, err
    	}
    	pod := findPodByOrdinal(pods, ordinal)
    	if pod == nil {
    		return nil, fmt.Errorf("setPodRunning: pod ordinal %d not found", ordinal)
    	}
    	pod.Status.Phase = v1.PodRunning
    	fakeResourceVersion(pod)
    	om.podsIndexer.Update(pod)
    	return om.podsLister.Pods(set.Namespace).List(selector)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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