Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,195 for podB (0.06 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/managedfields_test.go

    		expected runtime.Object
    	}{
    		{
    			name: "pod without managedFields",
    			object: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "pod1"},
    			},
    			expected: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "pod1"},
    			},
    		},
    		{
    			name: "pod with managedFields",
    			object: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "pod1",
    					ManagedFields: []metav1.ManagedFieldsEntry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 16 14:52:03 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  2. hack/testdata/sorted-pods/sorted-pod3.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: sorted-pod3
      creationTimestamp: "2018-08-30T14:10:53Z"
      labels:
        name: sorted-pod1-label
    spec:
      containers:
      - name: kubernetes-pause3
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 223 bytes
    - Viewed (0)
  3. pkg/controller/controller_ref_manager_test.go

    				pods:    []*v1.Pod{pod1, pod2},
    				claimed: []*v1.Pod{pod1},
    				patches: 1,
    			}
    		}(),
    		func() test {
    			// act as a cluster-scoped controller
    			controller := v1.ReplicationController{}
    			controller.Namespace = ""
    			controller.UID = types.UID(controllerUID)
    			pod1 := newPod("pod1", productionLabel, nil)
    			pod2 := newPod("pod2", productionLabel, nil)
    			pod2.Namespace = "fakens"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 17:19:26 UTC 2021
    - 10.6K bytes
    - Viewed (0)
  4. pkg/controller/replicaset/replica_set_utils_test.go

    				newPod("pod2", fullyLabelledRS, v1.PodRunning, nil, true),
    			},
    			apps.ReplicaSetStatus{
    				Replicas:             2,
    				FullyLabeledReplicas: 2,
    				ReadyReplicas:        2,
    				AvailableReplicas:    2,
    			},
    		},
    		{
    			"2 not fully labelled pods",
    			notFullyLabelledRS,
    			[]*v1.Pod{
    				newPod("pod1", notFullyLabelledRS, v1.PodRunning, nil, true),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 19 20:18:23 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  5. pkg/controller/replicaset/replica_set_test.go

    			rs:               someRS,
    			pods:             []*v1.Pod{pod1, pod2, pod3, pod4},
    			expectedPodNames: []string{"pod1", "pod2", "pod3"},
    		},
    	}
    	for _, c := range testCases {
    		for _, r := range c.rss {
    			informers.Apps().V1().ReplicaSets().Informer().GetIndexer().Add(r)
    		}
    		for _, pod := range c.pods {
    			informers.Core().V1().Pods().Informer().GetIndexer().Add(pod)
    			manager.addPod(logger, pod)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  6. hack/testdata/sorted-pods/sorted-pod1.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: sorted-pod1
      creationTimestamp: "2018-08-30T14:10:58Z"
      labels:
        name: sorted-pod3-label
    spec:
      containers:
      - name: kubernetes-pause2
        image: registry.k8s.io/pause:3.10
        resources:
          requests:
            memory: "64Mi"
            cpu: "250m"
          limits:
            memory: "128Mi"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 355 bytes
    - Viewed (0)
  7. pkg/quota/v1/evaluator/core/pods.go

    }
    
    func toExternalPodOrError(obj runtime.Object) (*corev1.Pod, error) {
    	pod := &corev1.Pod{}
    	switch t := obj.(type) {
    	case *corev1.Pod:
    		pod = t
    	case *api.Pod:
    		if err := k8s_api_v1.Convert_core_Pod_To_v1_Pod(t, pod, nil); err != nil {
    			return nil, err
    		}
    	default:
    		return nil, fmt.Errorf("expect *api.Pod or *v1.Pod, got %v", t)
    	}
    	return pod, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    		t.Errorf("unexpected error: %v", err)
    	}
    	if _, ok, _ := store.Get(pod3); ok {
    		t.Errorf("found pod")
    	}
    
    	// Test List.
    	store.Add(makeTestPod("pod1", 4))
    	store.Add(makeTestPod("pod2", 5))
    	store.Add(makeTestPod("pod3", 6))
    	{
    		expected := map[string]storeElement{
    			"prefix/ns/pod1": *makeTestStoreElement(makeTestPod("pod1", 4)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  9. pkg/kubelet/pod_workers_test.go

    		return status
    	}
    	withLabel := func(pod *v1.Pod, label, value string) *v1.Pod {
    		if pod.Labels == nil {
    			pod.Labels = make(map[string]string)
    		}
    		pod.Labels[label] = value
    		return pod
    	}
    	withDeletionTimestamp := func(pod *v1.Pod, ts time.Time, gracePeriod *int64) *v1.Pod {
    		pod.DeletionTimestamp = &metav1.Time{Time: ts}
    		pod.DeletionGracePeriodSeconds = gracePeriod
    		return pod
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  10. pilot/pkg/leaderelection/leaderelection_test.go

    	watcher := &fakeDefaultWatcher{}
    	// First remote pod becomes the leader
    	_, stop := createElectionMulticluster(t, "pod1", "", true, false, watcher, true, client)
    	// A new local pod should become leader
    	_, stop2 := createElectionMulticluster(t, "pod2", "", false, false, watcher, true, client)
    	// A new remote pod cannot become leader
    	_, stop3 := createElectionMulticluster(t, "pod3", "", true, false, watcher, false, client)
    	close(stop3)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top