Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 186 for pidStatus (0.15 sec)

  1. pkg/kubelet/prober/prober_manager.go

    	}
    
    	// there is no startup probe, so the container is started.
    	return true
    }
    
    func (m *manager) UpdatePodStatus(pod *v1.Pod, podStatus *v1.PodStatus) {
    	for i, c := range podStatus.ContainerStatuses {
    		started := m.isContainerStarted(pod, &podStatus.ContainerStatuses[i])
    		podStatus.ContainerStatuses[i].Started = &started
    
    		if !started {
    			continue
    		}
    
    		var ready bool
    		if c.State.Running == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. pkg/kubelet/prober/common_test.go

    	containerStatus.Started = &started
    	podStatus := v1.PodStatus{
    		Phase:             v1.PodRunning,
    		ContainerStatuses: []v1.ContainerStatus{containerStatus},
    	}
    	return podStatus
    }
    
    func getTestPod() *v1.Pod {
    	container := v1.Container{
    		Name: testContainerName,
    	}
    	pod := v1.Pod{
    		Spec: v1.PodSpec{
    			Containers:    []v1.Container{container},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 16:57:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. pkg/controller/deployment/recreate_test.go

    			podMap: map[types.UID][]*v1.Pod{
    				"uid-1": {
    					{
    						Status: v1.PodStatus{
    							Phase: v1.PodFailed,
    						},
    					},
    					{
    						Status: v1.PodStatus{
    							Phase: v1.PodSucceeded,
    						},
    					},
    				},
    				"uid-2": {},
    				"uid-3": {
    					{
    						Status: v1.PodStatus{
    							Phase: v1.PodPending,
    						},
    					},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/util/util.go

    // (changed, new attempt, original sandboxID if exist).
    func PodSandboxChanged(pod *v1.Pod, podStatus *kubecontainer.PodStatus) (bool, uint32, string) {
    	if len(podStatus.SandboxStatuses) == 0 {
    		klog.V(2).InfoS("No sandbox for pod can be found. Need to start a new one", "pod", klog.KObj(pod))
    		return true, 0, ""
    	}
    
    	readySandboxCount := 0
    	for _, s := range podStatus.SandboxStatuses {
    		if s.State == runtimeapi.PodSandboxState_SANDBOX_READY {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. 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)
  6. pkg/controller/job/tracking_utils_test.go

    					Finalizers: []string{batch.JobTrackingFinalizer},
    				},
    				Status: v1.PodStatus{
    					Phase: v1.PodPending,
    				},
    			},
    		},
    		"pod with finalizer fails": {
    			oldPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Finalizers: []string{batch.JobTrackingFinalizer},
    				},
    				Status: v1.PodStatus{
    					Phase: v1.PodRunning,
    				},
    			},
    			newPod: &v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/example/zz_generated.deepcopy.go

    		*out = (*in).DeepCopy()
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
    func (in *PodStatus) DeepCopy() *PodStatus {
    	if in == nil {
    		return nil
    	}
    	out := new(PodStatus)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  8. 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)
  9. staging/src/k8s.io/cli-runtime/pkg/printers/template_test.go

    		"emptyInfo": {v1.Pod{Status: v1.PodStatus{ContainerStatuses: []v1.ContainerStatus{}}}, "false"},
    		"fooExists": {
    			v1.Pod{
    				Status: v1.PodStatus{
    					ContainerStatuses: []v1.ContainerStatus{
    						{
    							Name: "foo",
    						},
    					},
    				},
    			},
    			"false",
    		},
    		"barExists": {
    			v1.Pod{
    				Status: v1.PodStatus{
    					ContainerStatuses: []v1.ContainerStatus{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 22 23:10:00 UTC 2019
    - 7.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/apis/example/v1/zz_generated.deepcopy.go

    		*out = (*in).DeepCopy()
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
    func (in *PodStatus) DeepCopy() *PodStatus {
    	if in == nil {
    		return nil
    	}
    	out := new(PodStatus)
    	in.DeepCopyInto(out)
    	return out
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 4.4K bytes
    - Viewed (0)
Back to top