Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for pidStatus (0.13 sec)

  1. pkg/kube/krt/join_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "svc",
    			Namespace: "namespace",
    		},
    		Spec: corev1.ServiceSpec{Selector: map[string]string{"app": "foo"}},
    	}
    	sc.Create(svc)
    
    	pod.Status = corev1.PodStatus{PodIP: "1.2.3.4"}
    	pc.UpdateStatus(pod)
    
    	assert.EventuallyEqual(t, fetch, []SimpleEndpoint{
    		{pod.Name, svc.Name, pod.Namespace, "1.2.3.4"},
    		{"name-static", svc.Name, pod.Namespace, "9.9.9.9"},
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/apis/core/helper/qos/qos.go

    func isSupportedQoSComputeResource(name core.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 *core.Pod) core.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.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/apis/example/v1/generated.proto

      // If not specified, the pod will be dispatched by default scheduler.
      // +optional
      optional string schedulername = 19;
    }
    
    // PodStatus represents information about the status of a pod. Status may trail the actual
    // state of a system.
    message PodStatus {
      // Current condition of the pod.
      // More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase
      // +optional
      optional string phase = 1;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. pilot/pkg/controllers/untaint/nodeuntainter.go

    func IsPodReadyConditionTrue(status v1.PodStatus) bool {
    	condition := GetPodReadyCondition(status)
    	return condition != nil && condition.Status == v1.ConditionTrue
    }
    
    func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition {
    	_, condition := GetPodCondition(&status, v1.PodReady)
    	return condition
    }
    
    func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go

    func IsPodReadyConditionTrue(status v1.PodStatus) bool {
    	condition := GetPodReadyCondition(status)
    	return condition != nil && condition.Status == v1.ConditionTrue
    }
    
    func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition {
    	_, condition := GetPodCondition(&status, v1.PodReady)
    	return condition
    }
    
    func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 22 20:35:23 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    	p := s.pc.Get(name, pod.Namespace)
    	if p == nil {
    		// Apiserver doesn't allow Create to modify the pod status; in real world it's a 2 part process
    		pod.Status = corev1.PodStatus{}
    		newPod := s.pc.Create(pod)
    		if markReady {
    			setPodReady(newPod)
    		}
    		newPod.Status.PodIP = ip
    		newPod.Status.Phase = corev1.PodRunning
    		newPod.Status.PodIPs = []corev1.PodIP{
    			{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator_test.go

    				{
    					Name: "dswp-test-volume-name",
    					VolumeSource: v1.VolumeSource{
    						RBD: &v1.RBDVolumeSource{
    							RBDImage: "dswp-test-fake-device",
    						},
    					},
    				},
    			},
    		},
    		Status: v1.PodStatus{
    			Phase: v1.PodPhase("Running"),
    		},
    	}
    
    	fakePodInformer.Informer().GetStore().Add(pod)
    
    	podName := util.GetUniquePodName(pod)
    
    	generatedVolumeName := "fake-plugin/" + pod.Spec.Volumes[0].RBD.RBDImage
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top