Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for pidStatus (0.17 sec)

  1. pkg/kubelet/cm/topologymanager/topology_manager_test.go

    		pod := &v1.Pod{
    			Spec: v1.PodSpec{
    				Containers: []v1.Container{
    					{
    						Resources: v1.ResourceRequirements{},
    					},
    				},
    			},
    			Status: v1.PodStatus{
    				QOSClass: tc.qosClass,
    			},
    		}
    
    		podAttr := lifecycle.PodAdmitAttributes{
    			Pod: pod,
    		}
    
    		// Container scope Admit
    		ctnActual := ctnScopeManager.Admit(&podAttr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 13:04:32 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/recycle_test.go

    					Name: "vol1",
    					VolumeSource: v1.VolumeSource{
    						PersistentVolumeClaim: &v1.PersistentVolumeClaimVolumeSource{
    							ClaimName: "runningClaim",
    						},
    					},
    				},
    			},
    		},
    		Status: v1.PodStatus{
    			Phase: v1.PodRunning,
    		},
    	}
    
    	pendingPod := runningPod.DeepCopy()
    	pendingPod.Name = "pendingPod"
    	pendingPod.Status.Phase = v1.PodPending
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. pkg/controller/volume/pvcprotection/pvc_protection_controller_test.go

    	return &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      defaultPodName,
    			Namespace: defaultNS,
    			UID:       defaultUID,
    		},
    		Spec: v1.PodSpec{
    			NodeName: defaultNodeName,
    		},
    		Status: v1.PodStatus{
    			Phase: v1.PodPending,
    		},
    	}
    }
    
    func unscheduled(pod *v1.Pod) *v1.Pod {
    	pod.Spec.NodeName = ""
    	return pod
    }
    
    func withPVC(pvcName string, pod *v1.Pod) *v1.Pod {
    	volume := v1.Volume{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  4. pkg/kubelet/preemption/preemption_test.go

    	f.killedPods = []*v1.Pod{}
    }
    
    func (f *fakePodKiller) getKilledPods() []*v1.Pod {
    	return f.killedPods
    }
    
    func (f *fakePodKiller) killPodNow(pod *v1.Pod, evict bool, gracePeriodOverride *int64, fn func(status *v1.PodStatus)) error {
    	if f.errDuringPodKilling {
    		f.killedPods = []*v1.Pod{}
    		return fmt.Errorf("problem killing pod %v", pod)
    	}
    	f.killedPods = append(f.killedPods, pod)
    	return nil
    }
    
    type fakePodProvider struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 10:04:08 UTC 2022
    - 19.2K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    			Name:      "foo",
    			Namespace: "bar",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Name:  "c1",
    					Image: "busybox",
    				},
    			},
    		},
    		Status: v1.PodStatus{},
    	}
    
    	for _, tc := range []struct {
    		name      string
    		scalingFg bool
    		limits    v1.ResourceList
    		requests  v1.ResourceList
    		cStatus   []v1.ContainerStatus
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		obj := &v1.PodList{}
    		podNamePrefix := "mypod"
    		namespace := "mynamespace"
    		for i := 0; i < 5; i++ {
    			podName := fmt.Sprintf("%s-%d", podNamePrefix, i)
    			pod := v1.Pod{
    				Status: v1.PodStatus{
    					Phase: v1.PodRunning,
    				},
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      podName,
    					UID:       types.UID(podName),
    					Namespace: namespace,
    					Labels: map[string]string{
    						"name": podName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  7. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

    				}
    
    				m.logger.V(1).Info("Shutdown manager killing pod with gracePeriod", "pod", klog.KObj(pod), "gracePeriod", gracePeriodOverride)
    
    				if err := m.killPodFunc(pod, false, &gracePeriodOverride, func(status *v1.PodStatus) {
    					// set the pod status to failed (unless it was already in a successful terminal phase)
    					if status.Phase != v1.PodSucceeded {
    						status.Phase = v1.PodFailed
    					}
    					status.Message = nodeShutdownMessage
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 08:02:40 UTC 2022
    - 15.5K bytes
    - Viewed (0)
  8. pkg/controller/testutil/test_utils.go

    func NewPod(name, host string) *v1.Pod {
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: "default",
    			Name:      name,
    		},
    		Spec: v1.PodSpec{
    			NodeName: host,
    		},
    		Status: v1.PodStatus{
    			Conditions: []v1.PodCondition{
    				{
    					Type:   v1.PodReady,
    					Status: v1.ConditionTrue,
    				},
    			},
    		},
    	}
    
    	return pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. pilot/pkg/xds/workload_test.go

    			},
    			Labels: map[string]string{
    				"app": sa,
    			},
    		},
    		Spec: corev1.PodSpec{
    			ServiceAccountName: sa,
    			NodeName:           node,
    		},
    		Status: corev1.PodStatus{
    			PodIP: ip,
    			PodIPs: []corev1.PodIP{
    				{
    					IP: ip,
    				},
    			},
    			Phase: corev1.PodRunning,
    			Conditions: []corev1.PodCondition{
    				{
    					Type:               corev1.PodReady,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  10. pkg/kubelet/config/config_test.go

    		pods := []*v1.Pod{
    			CreateValidPod("changeable-pod-0", "new"),
    			CreateValidPod("constant-pod-1", "new"),
    			CreateValidPod("constant-pod-2", "new"),
    		}
    		if touchStatus {
    			pods[0].Status = v1.PodStatus{Message: strconv.Itoa(rand.Int())}
    		}
    		if touchSpec {
    			pods[0].Spec.Containers[0].Name = strconv.Itoa(rand.Int())
    		}
    		return pods, pods[0]
    	}
    	for _, op := range []kubetypes.PodOperation{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top