Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 453 for pod4 (0.06 sec)

  1. staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go

    		t.Fatalf("unexpected error %v", errs)
    	}
    	if pod, ok := pl.Items[1].(*unstructured.Unstructured); !ok || pod.Object["kind"] != "Pod" || pod.Object["metadata"].(map[string]interface{})["name"] != "test" {
    		t.Errorf("object not converted: %#v", pl.Items[1])
    	}
    	if pod, ok := pl.Items[2].(*unstructured.Unstructured); !ok || pod.Object["kind"] != "Pod" || pod.Object["metadata"].(map[string]interface{})["name"] != "test" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 17.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    			out: &example.PodList{Items: []example.Pod{}},
    		},
    		"normal": {
    			in:  &example.PodList{Items: []example.Pod{*podA, *podB}},
    			m:   matchEverything(),
    			out: &example.PodList{Items: []example.Pod{*podA, *podB}},
    		},
    		"normalFiltered": {
    			in:  &example.PodList{Items: []example.Pod{*podA, *podB}},
    			m:   matchPodName("foo"),
    			out: &example.PodList{Items: []example.Pod{*podB}},
    		},
    		"normalFilteredNoNamespace": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    	createPod("128.0.0.2", "pod")
    	assert.Equal(t, c.pods.getPodKeys("128.0.0.2"), []types.NamespacedName{{Name: "pod", Namespace: "ns"}})
    	assert.Equal(t, c.pods.getPodKeys("128.0.0.1"), nil)
    
    	// A new pod is created with the old IP. We should get new-pod, not pod
    	createPod("128.0.0.1", "new-pod")
    	assert.Equal(t, c.pods.getPodKeys("128.0.0.1"), []types.NamespacedName{{Name: "new-pod", Namespace: "ns"}})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. pkg/kubelet/config/apiserver_test.go

    	pod1 := v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "p", Namespace: "one"},
    		Spec:       v1.PodSpec{Containers: []v1.Container{{Image: "image/one"}}}}
    	pod2 := v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "p", Namespace: "two"},
    		Spec:       v1.PodSpec{Containers: []v1.Container{{Image: "image/blah"}}}}
    
    	// Setup fake api client.
    	fakeWatch := watch.NewFake()
    	lw := fakePodLW{
    		listResp:  &v1.PodList{Items: []v1.Pod{pod1, pod2}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 18:31:03 UTC 2017
    - 5.6K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_serviceentry_test.go

    					WorkloadType:      workloadapi.WorkloadType_POD,
    					WorkloadName:      "pod1",
    				},
    			},
    		},
    	}})
    
    	s.addPods(t, "140.140.0.11", "pod2", "sa1", map[string]string{"app": "other"}, nil, true, corev1.PodRunning)
    	s.assertEvent(t, s.podXdsName("pod2"))
    	s.assertWorkloads(t, "", workloadapi.WorkloadStatus_HEALTHY, "pod1", "pod2")
    	s.addWorkloadEntries(t, "240.240.34.56", "name1", "sa1", map[string]string{"app": "a"})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 03:01:04 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. 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)
  7. pkg/controller/endpoint/endpoints_controller_test.go

    			ns := "test"
    			addPods(podStore, ns, 1, 1, 0, tc.ipFamilies)
    			pods := podStore.List()
    			if len(pods) != 1 {
    				t.Fatalf("podStore size: expected: %d, got: %d", 1, len(pods))
    			}
    			pod := pods[0].(*v1.Pod)
    			epa, err := podToEndpointAddressForService(&tc.service, pod)
    
    			if err != nil && !tc.expectError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  8. 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)
  9. pkg/volume/local/local_linux_test.go

    	fsGroup1 := int64(s.Gid)
    	fsGroup2 := fsGroup1 + 1
    	pod1 := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	pod1.Spec.SecurityContext = &v1.PodSecurityContext{
    		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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 2K bytes
    - Viewed (0)
  10. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    		podClaimName := fmt.Sprintf("claimtemplate-with-claim%d", i)
    		claimName := fmt.Sprintf("generated-claim-%s-%s-%d", pod.Name, pod.Namespace, i)
    		pod.Spec.ResourceClaims = append(pod.Spec.ResourceClaims, corev1.PodResourceClaim{
    			Name: podClaimName,
    			Source: corev1.ClaimSource{
    				ResourceClaimTemplateName: &claimTemplateName,
    			},
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
Back to top