Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 119 for pidStatus (0.22 sec)

  1. pkg/kubelet/container/helpers.go

    // ConvertPodStatusToRunningPod returns Pod given PodStatus and container runtime string.
    // TODO(random-liu): Convert PodStatus to running Pod, should be deprecated soon
    func ConvertPodStatusToRunningPod(runtimeName string, podStatus *PodStatus) Pod {
    	runningPod := Pod{
    		ID:        podStatus.ID,
    		Name:      podStatus.Name,
    		Namespace: podStatus.Namespace,
    	}
    	for _, containerStatus := range podStatus.ContainerStatuses {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. pkg/api/pod/util.go

    		dropUserField(podStatus.ContainerStatuses)
    		dropUserField(podStatus.EphemeralContainerStatuses)
    	}
    }
    
    func hostIPsInUse(podStatus *api.PodStatus) bool {
    	if podStatus == nil {
    		return false
    	}
    	return len(podStatus.HostIPs) > 0
    }
    
    // dropDisabledDynamicResourceAllocationFields removes pod claim references from
    // container specs and pod-level resource claims unless they are already used
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    }
    
    func shouldRestartOnFailure(pod *v1.Pod) bool {
    	return pod.Spec.RestartPolicy != v1.RestartPolicyNever
    }
    
    func containerSucceeded(c *v1.Container, podStatus *kubecontainer.PodStatus) bool {
    	cStatus := podStatus.FindContainerStatusByName(c.Name)
    	if cStatus == nil || cStatus.State == kubecontainer.ContainerStateRunning {
    		return false
    	}
    	return cStatus.ExitCode == 0
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. pkg/kubelet/status/status_manager.go

    			klog.V(4).InfoS("Static pod has no corresponding mirror pod, no need to reconcile", "pod", klog.KObj(pod))
    			return false
    		}
    		pod = mirrorPod
    	}
    
    	podStatus := pod.Status.DeepCopy()
    	normalizeStatus(pod, podStatus)
    
    	if isPodStatusByKubeletEqual(podStatus, &status) {
    		// If the status from the source is the same with the cached status,
    		// reconcile is not needed. Just return.
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/informers_test.go

    	defer cancel()
    
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    	// We are expecting at most 1 calls to the mock, wait for them
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  6. pkg/kubelet/runonce_test.go

    	podManager.SetPods(pods)
    	// The original test here is totally meaningless, because fakeruntime will always return an empty podStatus. While
    	// the original logic of isPodRunning happens to return true when podstatus is empty, so the test can always pass.
    	// Now the logic in isPodRunning is changed, to let the test pass, we set the podstatus directly in fake runtime.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. pkg/controller/job/backoff_utils_test.go

    			newFailedPods := []*v1.Pod{}
    
    			for _, finishTime := range tc.newSucceededPods {
    				newSucceededPods = append(newSucceededPods, &v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{},
    					Status: v1.PodStatus{
    						Phase: v1.PodSucceeded,
    						ContainerStatuses: []v1.ContainerStatus{
    							{
    								State: v1.ContainerState{
    									Terminated: &v1.ContainerStateTerminated{
    										FinishedAt: finishTime,
    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. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    	if err := f(nil,
    		&v1.Pod{ObjectMeta: pod1, Status: v1.PodStatus{Conditions: notReadyCondition, PodIP: ip, Phase: v1.PodPending}},
    		model.EventUpdate); err != nil {
    		t.Error(err)
    	}
    	if handled != 0 {
    		t.Errorf("notified workload handler %d times, want %d", handled, 0)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. pkg/kube/krt/index_test.go

    		})
    	}
    
    	SimplePods.Register(TrackerHandler[SimplePod](tt))
    
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "name",
    			Namespace: "namespace",
    		},
    		Status: corev1.PodStatus{PodIP: "1.2.3.4"},
    	}
    	pc.CreateOrUpdateStatus(pod)
    	tt.WaitUnordered("add/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. 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)
Back to top