Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for poda (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/endpoints/handlers/rest_test.go

    			patchBytes: []byte(test.patch),
    		}
    		jp := jsonPatcher{patcher: p}
    		codec := codecs.LegacyCodec(examplev1.SchemeGroupVersion)
    		pod := &examplev1.Pod{}
    		pod.Name = "podA"
    		pod.ObjectMeta.Finalizers = []string{"foo"}
    		versionedJS, err := runtime.Encode(codec, pod)
    		if err != nil {
    			t.Errorf("%s: unexpected error: %v", test.name, err)
    			continue
    		}
    		_, _, err = jp.applyJSPatch(versionedJS)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/graph_test.go

    		"node:node3":            {},
    		"pod:ns/pod1":           {"node:node1"},
    		"pod:ns/pod2":           {"node:node2"},
    		"pod:ns/pod3":           {"node:node3"},
    		"configmap:ns/cm1":      {"pod:ns/pod1", "pod:ns/pod2", "pod:ns/pod3"},
    		"configmap:ns/cm2":      {"pod:ns/pod1", "pod:ns/pod2", "pod:ns/pod3"},
    		"configmap:ns/cm3":      {"pod:ns/pod1", "pod:ns/pod2", "pod:ns/pod3"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  4. pkg/dns/server/name_table_test.go

    		makeServiceInstances(pod1, headlessService, "pod1", "headless-svc"))
    	push.AddServiceInstances(headlessService,
    		makeServiceInstances(pod2, headlessService, "pod2", "headless-svc"))
    	push.AddServiceInstances(headlessService,
    		makeServiceInstances(pod3, headlessService, "pod3", "headless-svc"))
    	push.AddServiceInstances(headlessService,
    		makeServiceInstances(pod4, headlessService, "pod4", "headless-svc"))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 04:26:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    	assert.Len(t, filteredInfos, 5)
    	assert.Len(t, allInfos, 11)
    	for _, c := range []string{"/pod0-i", "/pod0-c0"} {
    		if _, found := filteredInfos[c]; !found {
    			t.Errorf("%q is expected to be in the output\n", c)
    		}
    	}
    
    	expectedInfoKeys := []string{"pod0-i-terminated-1", "pod0-c0-terminated-1", "pod0-i-terminated-2", "pod0-c0-terminated-2", "pod0-i", "pod0-c0"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go

    	verifyVolumeExistsWithSpecNameInVolumeDsw(t, podName, volumeSpec.Name(), dsw)
    
    	// Arrange: prepare a different pod with the same context
    	pod2 := pod.DeepCopy()
    	pod2.Name = "pod2"
    	pod2.UID = "pod2uid"
    	pod2Name := util.GetUniquePodName(pod)
    
    	// Act
    	generatedVolumeName2, err := dsw.AddPodToVolume(
    		pod2Name, pod2, volumeSpec, volumeSpec.Name(), "" /* volumeGidValue */, seLinuxContainerContexts)
    	// Assert
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. 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)
  8. pkg/scheduler/util/utils_test.go

    	currentTime := time.Now()
    	pod1 := newPriorityPodWithStartTime("pod1", 1, currentTime)
    	pod2 := newPriorityPodWithStartTime("pod2", 2, currentTime.Add(time.Second))
    	pod3 := newPriorityPodWithStartTime("pod3", 2, currentTime)
    
    	tests := map[string]struct {
    		p1       *v1.Pod
    		p2       *v1.Pod
    		expected bool
    	}{
    		"Pod with higher priority": {
    			p1:       pod1,
    			p2:       pod2,
    			expected: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  9. pkg/controller/deployment/deployment_controller_test.go

    	rs2 := newReplicaSet(d, "rs2", 1)
    
    	// Add a Pod for each ReplicaSet.
    	pod1 := generatePodFromRS(rs1)
    	pod2 := generatePodFromRS(rs2)
    	// Add a Pod that has matching labels, but no ControllerRef.
    	pod3 := generatePodFromRS(rs1)
    	pod3.Name = "pod3"
    	pod3.OwnerReferences = nil
    	// Add a Pod that has matching labels and ControllerRef, but is inactive.
    	pod4 := generatePodFromRS(rs1)
    	pod4.Name = "pod4"
    	pod4.Status.Phase = v1.PodFailed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  10. pkg/controller/tainteviction/taint_eviction_test.go

    			expectedDeleteTimes: durationSlice{
    				{[]string{"pod1"}, 0},
    				{[]string{"pod2"}, time.Second},
    			},
    		},
    		{
    			description: "Evict all pods not matching all taints instantly",
    			pods: []corev1.Pod{
    				*testutil.NewPod("pod1", "node1"),
    				*addToleration(testutil.NewPod("pod2", "node1"), 1, 1),
    				*addToleration(testutil.NewPod("pod3", "node1"), 1, -1),
    			},
    			oldNode: testutil.NewNode("node1"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
Back to top