Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for pidStatus (0.19 sec)

  1. pkg/kubelet/kubelet_test.go

    		},
    	}
    	pods := []*v1.Pod{pod}
    	kl.podManager.SetPods(pods)
    	podStatus := &kubecontainer.PodStatus{ID: pod.UID}
    	gracePeriodOverride := int64(0)
    	err := kl.SyncTerminatingPod(context.Background(), pod, podStatus, &gracePeriodOverride, func(podStatus *v1.PodStatus) {
    		podStatus.Phase = v1.PodFailed
    		podStatus.Reason = "reason"
    		podStatus.Message = "message"
    	})
    	require.NoError(t, err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    }
    
    // convertStatusToAPIStatus initialize an api PodStatus for the given pod from
    // the given internal pod status and the previous state of the pod from the API.
    // It is purely transformative and does not alter the kubelet state at all.
    func (kl *Kubelet) convertStatusToAPIStatus(pod *v1.Pod, podStatus *kubecontainer.PodStatus, oldPodStatus v1.PodStatus) *v1.PodStatus {
    	var apiPodStatus v1.PodStatus
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet.go

    		podStatus.IPs = append(podStatus.IPs, ipInfo.IP)
    	}
    	if len(podStatus.IPs) == 0 && len(apiPodStatus.PodIP) > 0 {
    		podStatus.IPs = []string{apiPodStatus.PodIP}
    	}
    
    	// If the pod is terminal, we don't need to continue to setup the pod
    	if apiPodStatus.Phase == v1.PodSucceeded || apiPodStatus.Phase == v1.PodFailed {
    		kl.statusManager.SetPodStatus(pod, apiPodStatus)
    		isTerminal = true
    		return isTerminal, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  4. pkg/printers/internalversion/printers_test.go

    			// Test name, num of containers, restarts, container ready status
    			api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "test1"},
    				Spec:       api.PodSpec{Containers: make([]api.Container, 2)},
    				Status: api.PodStatus{
    					Phase: "podPhase",
    					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)
  5. pkg/controller/job/job_controller_test.go

    					PodFailurePolicy: &batch.PodFailurePolicy{
    						Rules: onExitCodeRules,
    					},
    				},
    			},
    			pods: []v1.Pod{
    				{
    					Status: v1.PodStatus{
    						Phase: v1.PodRunning,
    					},
    				},
    				{
    					Status: v1.PodStatus{
    						Phase: v1.PodFailed,
    						ContainerStatuses: []v1.ContainerStatus{
    							{
    								Name: "main-container",
    								State: v1.ContainerState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  6. pkg/printers/internalversion/printers.go

    		{Name: "IP", Type: "string", Priority: 1, Description: apiv1.PodStatus{}.SwaggerDoc()["podIP"]},
    		{Name: "Node", Type: "string", Priority: 1, Description: apiv1.PodSpec{}.SwaggerDoc()["nodeName"]},
    		{Name: "Nominated Node", Type: "string", Priority: 1, Description: apiv1.PodStatus{}.SwaggerDoc()["nominatedNodeName"]},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	}
    
    	// mark pods[1] ~ pods[totalNum-1] as unschedulable and add them back
    	for i := 1; i < totalNum; i++ {
    		unschedulablePod := expectedPods[i].DeepCopy()
    		unschedulablePod.Status = v1.PodStatus{
    			Conditions: []v1.PodCondition{
    				{
    					Type:   v1.PodScheduled,
    					Status: v1.ConditionFalse,
    					Reason: v1.PodReasonUnschedulable,
    				},
    			},
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top