Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 143 for pidStatus (0.15 sec)

  1. pkg/registry/core/pod/storage/storage_test.go

    	}{
    		{
    			pod: api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    				Status:     api.PodStatus{PodIPs: []api.PodIP{{IP: expectedIP}}},
    			},
    			query:    "foo",
    			location: expectedIP,
    		},
    		{
    			pod: api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    				Status:     api.PodStatus{PodIPs: []api.PodIP{{IP: expectedIP}}},
    			},
    			query:    "foo:12345",
    			location: expectedIP + ":12345",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  2. pkg/api/pod/util_test.go

    	podWithHostIPs := func() *api.PodStatus {
    		return &api.PodStatus{
    			HostIPs: makeHostIPs("10.0.0.1", "fd00:10::1"),
    		}
    	}
    
    	podWithoutHostIPs := func() *api.PodStatus {
    		return &api.PodStatus{
    			HostIPs: nil,
    		}
    	}
    
    	tests := []struct {
    		name          string
    		podStatus     *api.PodStatus
    		oldPodStatus  *api.PodStatus
    		wantPodStatus *api.PodStatus
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    	return rt.err
    }
    
    type mockPodStatusProvider struct {
    	podStatus v1.PodStatus
    	found     bool
    }
    
    func (psp mockPodStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool) {
    	return psp.podStatus, psp.found
    }
    
    func makePod(podUID, containerName, cpuRequest, cpuLimit string) *v1.Pod {
    	pod := &v1.Pod{
    		Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  4. pkg/scheduler/util/utils_test.go

    	return &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: v1.PodSpec{
    			Priority: &priority,
    		},
    		Status: v1.PodStatus{
    			StartTime: &metav1.Time{Time: startTime},
    		},
    	}
    }
    
    func TestGetEarliestPodStartTime(t *testing.T) {
    	var priority int32 = 1
    	currentTime := time.Now()
    	tests := []struct {
    		name              string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/helper/qos/qos.go

    func isSupportedQoSComputeResource(name v1.ResourceName) bool {
    	return supportedQoSComputeResources.Has(string(name))
    }
    
    // GetPodQOS returns the QoS class of a pod persisted in the PodStatus.QOSClass field.
    // If PodStatus.QOSClass is empty, it returns value of ComputePodQOS() which evaluates pod's QoS class.
    func GetPodQOS(pod *v1.Pod) v1.PodQOSClass {
    	if pod.Status.QOSClass != "" {
    		return pod.Status.QOSClass
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 04:01:46 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. pkg/kubelet/status/generate_test.go

    		pod      *v1.Pod
    		status   *kubecontainer.PodStatus
    		expected v1.PodCondition
    	}{
    		"Empty pod status": {
    			pod:    &v1.Pod{},
    			status: &kubecontainer.PodStatus{},
    			expected: v1.PodCondition{
    				Status: v1.ConditionFalse,
    			},
    		},
    		"Pod sandbox status not ready": {
    			pod: &v1.Pod{},
    			status: &kubecontainer.PodStatus{
    				SandboxStatuses: []*runtimeapi.PodSandboxStatus{
    					{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/cni-watcher_test.go

    	defer cancel()
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "pod-bingo",
    			Namespace: "funkyns",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIP: fakePodIP,
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}}
    
    	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 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe_test.go

    										Name:          "http",
    										ContainerPort: 9080,
    									},
    								},
    							},
    							{
    								Name: "istio-proxy",
    							},
    						},
    					},
    					Status: corev1.PodStatus{
    						Phase: corev1.PodRunning,
    						ContainerStatuses: []corev1.ContainerStatus{
    							{
    								Name:  "istio-proxy",
    								Ready: true,
    							},
    						},
    					},
    				},
    				&corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:54:01 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. pkg/kubelet/config/common_test.go

    			}},
    			SecurityContext:    &v1.PodSecurityContext{},
    			SchedulerName:      v1.DefaultSchedulerName,
    			EnableServiceLinks: &enableServiceLinks,
    		},
    		Status: v1.PodStatus{
    			PodIP: "1.2.3.4",
    			PodIPs: []v1.PodIP{
    				{
    					IP: "1.2.3.4",
    				},
    			},
    		},
    	}
    	json, err := runtime.Encode(clientscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion), pod)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  10. pkg/scheduler/metrics/resources/resources_test.go

    					},
    					Status: v1.PodStatus{Phase: v1.PodFailed},
    				},
    				{
    					ObjectMeta: metav1.ObjectMeta{Namespace: "test", Name: "foo-unknown"},
    					Spec: v1.PodSpec{
    						NodeName: "node-one",
    						Containers: []v1.Container{
    							{Resources: v1.ResourceRequirements{Requests: v1.ResourceList{"cpu": resource.MustParse("1")}}},
    						},
    					},
    					Status: v1.PodStatus{Phase: v1.PodUnknown},
    				},
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 21.6K bytes
    - Viewed (0)
Back to top