Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for cpod2 (0.1 sec)

  1. hack/testdata/sorted-pods/sorted-pod2.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: sorted-pod2
      creationTimestamp: "2018-08-30T14:10:55Z"
      labels:
        name: sorted-pod2-label
    spec:
      containers:
      - name: kubernetes-pause1
        image: registry.k8s.io/pause:3.10
        resources:
          requests:
            memory: "1G"
            cpu: "0.5"
          limits:
            memory: "2G"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 347 bytes
    - Viewed (0)
  2. pkg/kube/krt/join_test.go

    		{pod2.Name, se.Name, pod2.Namespace, pod2.Status.PodIP},
    		{pod.Name, svc.Name, pod.Namespace, pod.Status.PodIP},
    		{pod2.Name, svc.Name, pod2.Namespace, pod2.Status.PodIP},
    	})
    }
    
    func TestCollectionJoinSync(t *testing.T) {
    	c := kube.NewFakeClient(&corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "name",
    			Namespace: "namespace",
    			Labels:    map[string]string{"app": "foo"},
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. pkg/kubelet/config/apiserver_test.go

    	}
    
    	// Add another pod
    	fakeWatch.Add(pod2)
    	got, ok = <-ch
    	if !ok {
    		t.Errorf("Unable to read from channel when expected")
    	}
    	update = got.(kubetypes.PodUpdate)
    	// Could be sorted either of these two ways:
    	expectedA := CreatePodUpdate(kubetypes.SET, kubetypes.ApiserverSource, pod1v1, pod2)
    	expectedB := CreatePodUpdate(kubetypes.SET, kubetypes.ApiserverSource, pod2, pod1v1)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 18:31:03 UTC 2017
    - 5.6K bytes
    - Viewed (0)
  4. pkg/kube/krt/index_test.go

    	pod2 := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "name2",
    			Namespace: "namespace",
    		},
    		Status: corev1.PodStatus{PodIP: "1.2.3.5"},
    	}
    	pc.CreateOrUpdateStatus(pod2)
    	tt.WaitUnordered("add/namespace/name2")
    	assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{
    		{NewNamed(pod), Labeled{}, "1.2.3.5"},
    		{NewNamed(pod2), Labeled{}, "1.2.3.5"},
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. pkg/kube/kclient/index_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "pod",
    			Namespace: "ns",
    		},
    		Spec: corev1.PodSpec{
    			ServiceAccountName: "sa",
    			NodeName:           "node",
    		},
    	}
    	pod2 := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "pod2",
    			Namespace: "ns",
    		},
    		Spec: corev1.PodSpec{
    			ServiceAccountName: "sa2",
    			NodeName:           "node",
    		},
    	}
    	pod3 := &corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 04 03:49:30 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. src/syscall/exec_unix_test.go

    	}
    	cmd2.Start()
    	defer cmd2.Stop()
    
    	cpid2, cpgrp2 := cmd2.Info()
    
    	if cpid2 == ppid {
    		t.Fatalf("Parent and child 2 have the same process ID")
    	}
    
    	if cpgrp2 == ppgrp {
    		t.Fatalf("Parent and child 2 are in the same process group")
    	}
    
    	if cpid2 == cpgrp2 {
    		t.Fatalf("Child 2's process group is its process ID")
    	}
    
    	if cpid1 == cpid2 {
    		t.Fatalf("Child 1 and 2 have the same process ID")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. pkg/volume/local/local_linux_test.go

    		FSGroup: &fsGroup1,
    	}
    	pod2 := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	pod2.Spec.SecurityContext = &v1.PodSecurityContext{
    		FSGroup: &fsGroup2,
    	}
    	err = testFSGroupMount(plug, pod1, tmpDir, fsGroup1)
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	err = testFSGroupMount(plug, pod2, tmpDir, fsGroup2)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 2K bytes
    - Viewed (0)
  8. pkg/controller/replicaset/replica_set_utils_test.go

    				ReadyReplicas:        1,
    				AvailableReplicas:    1,
    			},
    		},
    		{
    			"2 fully labelled pods",
    			fullyLabelledRS,
    			[]*v1.Pod{
    				newPod("pod1", fullyLabelledRS, v1.PodRunning, nil, true),
    				newPod("pod2", fullyLabelledRS, v1.PodRunning, nil, true),
    			},
    			apps.ReplicaSetStatus{
    				Replicas:             2,
    				FullyLabeledReplicas: 2,
    				ReadyReplicas:        2,
    				AvailableReplicas:    2,
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 19 20:18:23 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/printers/managedfields_test.go

    					{
    						ObjectMeta: metav1.ObjectMeta{
    							Name:          "pod1",
    							ManagedFields: []metav1.ManagedFieldsEntry{},
    						},
    					},
    					{
    						ObjectMeta: metav1.ObjectMeta{
    							Name: "pod2",
    							ManagedFields: []metav1.ManagedFieldsEntry{
    								{Manager: "kubectl", Operation: metav1.ManagedFieldsOperationApply},
    							},
    						},
    					},
    					{ObjectMeta: metav1.ObjectMeta{Name: "pod3"}},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 16 14:52:03 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  10. pkg/scheduler/util/utils.go

    // but expects those arguments to be *v1.Pod.
    func MoreImportantPod(pod1, pod2 *v1.Pod) bool {
    	p1 := corev1helpers.PodPriority(pod1)
    	p2 := corev1helpers.PodPriority(pod2)
    	if p1 != p2 {
    		return p1 > p2
    	}
    	return GetPodStartTime(pod1).Before(GetPodStartTime(pod2))
    }
    
    // Retriable defines the retriable errors during a scheduling cycle.
    func Retriable(err error) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top