Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for pidStatus (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/kubelet/active_deadline_test.go

    }
    
    // GetPodStatus returns the status on the associated pod with matching uid (if found)
    func (m *mockPodStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool) {
    	for _, pod := range m.pods {
    		if pod.UID == uid {
    			return pod.Status, true
    		}
    	}
    	return v1.PodStatus{}, false
    }
    
    func TestNewActiveDeadlineHandler(t *testing.T) {
    	pods := newTestPods(1)
    	podStatusProvider := &mockPodStatusProvider{pods: pods}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 08 09:06:42 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pkg/kubelet/prober/prober.go

    		return
    	}
    	pb.recorder.Eventf(ref, eventType, reason, message, args...)
    }
    
    // probe probes the container.
    func (pb *prober) probe(ctx context.Context, probeType probeType, pod *v1.Pod, status v1.PodStatus, container v1.Container, containerID kubecontainer.ContainerID) (results.Result, error) {
    	var probeSpec *v1.Probe
    	switch probeType {
    	case readiness:
    		probeSpec = container.ReadinessProbe
    	case liveness:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:50:13 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. pkg/kubelet/prober/prober_test.go

    		{&v1.HTTPGetAction{Host: "hostname", Port: intstr.FromInt32(76), Path: "path"}, true, "hostname", 76, "path"},
    	}
    
    	for _, test := range testCases {
    		state := v1.PodStatus{PodIP: "127.0.0.1"}
    		container := v1.Container{
    			Ports: []v1.ContainerPort{{Name: "found", ContainerPort: 93}},
    			LivenessProbe: &v1.Probe{
    				ProbeHandler: v1.ProbeHandler{
    					HTTPGet: test.probe,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:35 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top