Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 695 for pod3 (0.59 sec)

  1. 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)
  2. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    			result := getContainerPorts(test.pod1, test.pod2)
    			if diff := cmp.Diff(test.expected, result); diff != "" {
    				t.Errorf("container ports: container ports does not match (-want,+got): %s", diff)
    			}
    		})
    	}
    }
    
    func Test_isSchedulableAfterPodDeleted(t *testing.T) {
    	podWithHostPort := st.MakePod().HostPort(8080)
    
    	testcases := map[string]struct {
    		pod          *v1.Pod
    		oldObj       interface{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. plugin/pkg/admission/serviceaccount/admission_test.go

    	// clear generated volume names
    	for i := range pod.Spec.Volumes {
    		if len(pod.Spec.Volumes[i].Name) > 0 {
    			pod.Spec.Volumes[i].Name = "cleared"
    		}
    	}
    	for i := range pod.Spec.Containers[0].VolumeMounts {
    		if len(pod.Spec.Containers[0].VolumeMounts[i].Name) > 0 {
    			pod.Spec.Containers[0].VolumeMounts[i].Name = "cleared"
    		}
    	}
    
    	if !reflect.DeepEqual(expectedVolumes, pod.Spec.Volumes) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  4. pkg/kubelet/preemption/preemption.go

    		// subtract the pod from requirements, and transfer the pod from input-pods to pods-to-evicted
    		requirements = requirements.subtract(pods[bestPodIndex])
    		podsToEvict = append(podsToEvict, pods[bestPodIndex])
    		pods[bestPodIndex] = pods[len(pods)-1]
    		pods = pods[:len(pods)-1]
    	}
    	return podsToEvict, nil
    }
    
    type admissionRequirement struct {
    	resourceName v1.ResourceName
    	quantity     int64
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 16:53:19 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  5. pkg/controller/daemon/daemon_controller_test.go

    			gotPods := map[string]bool{}
    			for node, pods := range nodesToDaemonPods {
    				for _, pod := range pods {
    					if pod.Spec.NodeName != node {
    						t.Errorf("pod %v grouped into %v but belongs in %v", pod.Name, node, pod.Spec.NodeName)
    					}
    					gotPods[pod.Name] = true
    				}
    			}
    			for _, pod := range tc.wantedPods {
    				if !gotPods[pod.Name] {
    					t.Errorf("expected pod %v but didn't get it", pod.Name)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    		})
    	}
    	return &v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: containers,
    		},
    	}
    }
    
    func newResourceInitPod(pod *v1.Pod, usage ...framework.Resource) *v1.Pod {
    	pod.Spec.InitContainers = newResourcePod(usage...).Spec.Containers
    	return pod
    }
    
    func newResourceOverheadPod(pod *v1.Pod, overhead v1.ResourceList) *v1.Pod {
    	pod.Spec.Overhead = overhead
    	return pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  7. 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)
  8. cmd/kubeadm/app/util/staticpod/utils.go

    	}
    
    	pod2, ok := obj.(*v1.Pod)
    	if !ok {
    		return pod, errors.Wrap(err, "patched manifest is not a valid Pod object")
    	}
    
    	return pod2, nil
    }
    
    // WriteStaticPodToDisk writes a static pod file to disk
    func WriteStaticPodToDisk(componentName, manifestDir string, pod v1.Pod) error {
    
    	// creates target folder if not already exists
    	if err := os.MkdirAll(manifestDir, 0700); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. pkg/kubelet/util/manager/watch_based_manager_test.go

    			steps: []step{
    				{"add", "ns1", "secret1", "pod1"},
    				{"add", "ns1", "secret1", "pod1"},
    				{"delete", "ns1", "secret1", "pod1"},
    				{"delete", "ns1", "secret1", "pod1"},
    			},
    			expects: []expect{
    				{"ns1", "secret1", "pod1", 1},
    				{"ns1", "secret1", "pod1", 2},
    				{"ns1", "secret1", "pod1", 1},
    				{"ns1", "secret1", "pod1", 0},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 10:05:43 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  10. pkg/volume/fc/fc_test.go

    	}
    	fm := mount.NewFakeMounter(
    		[]mount.MountPoint{
    			{Device: "/dev/sdb", Path: "/var/lib/kubelet/pods/some-pod/volumes/kubernetes.io~fc/fc-in-pod1"},
    			{Device: "/dev/sdb", Path: "/var/lib/kubelet/plugins/kubernetes.io/fc/50060e801049cfd1-lun-0"},
    			{Device: "/dev/sdc", Path: "/var/lib/kubelet/pods/some-pod/volumes/kubernetes.io~fc/fc-in-pod2"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
Back to top