Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 170 for pidStatus (0.42 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/example/v1/generated.pb.go

    }
    
    var xxx_messageInfo_PodSpec proto.InternalMessageInfo
    
    func (m *PodStatus) Reset()      { *m = PodStatus{} }
    func (*PodStatus) ProtoMessage() {}
    func (*PodStatus) Descriptor() ([]byte, []int) {
    	return fileDescriptor_c0604dbfc428ecfb, []int{4}
    }
    func (m *PodStatus) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *PodStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    }
    
    // convertStatusToAPIStatus initialize an api PodStatus for the given pod from
    // the given internal pod status and the previous state of the pod from the API.
    // It is purely transformative and does not alter the kubelet state at all.
    func (kl *Kubelet) convertStatusToAPIStatus(pod *v1.Pod, podStatus *kubecontainer.PodStatus, oldPodStatus v1.PodStatus) *v1.PodStatus {
    	var apiPodStatus v1.PodStatus
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/util/pod/pod.go

    // PatchPodStatus patches pod status. It returns true and avoids an update if the patch contains no changes.
    func PatchPodStatus(ctx context.Context, c clientset.Interface, namespace, name string, uid types.UID, oldPodStatus, newPodStatus v1.PodStatus) (*v1.Pod, []byte, bool, error) {
    	patchBytes, unchanged, err := preparePatchBytesForPodStatus(namespace, name, uid, oldPodStatus, newPodStatus)
    	if err != nil {
    		return nil, nil, false, err
    	}
    	if unchanged {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top