Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 767 for podB (0.1 sec)

  1. cmd/kubeadm/app/util/marshal_test.go

    	}
    
    	pod2, ok := obj2.(*corev1.Pod)
    	if !ok {
    		t.Fatal("did not get a Pod")
    	}
    
    	if pod2.Name != pod.Name {
    		t.Errorf("expected %q, got %q", pod.Name, pod2.Name)
    	}
    
    	if pod2.Namespace != pod.Namespace {
    		t.Errorf("expected %q, got %q", pod.Namespace, pod2.Namespace)
    	}
    
    	if !reflect.DeepEqual(pod2.Labels, pod.Labels) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/policy/v1/generated.proto

    option go_package = "k8s.io/api/policy/v1";
    
    // Eviction evicts a pod from its node subject to certain policies and safety constraints.
    // This is a subresource of Pod.  A request to cause such an eviction is
    // created by POSTing to .../pods/<pod name>/evictions.
    message Eviction {
      // ObjectMeta describes the pod that is being evicted.
      // +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. pkg/kubelet/apis/podresources/server_v1alpha1_test.go

    		desc             string
    		pods             []*v1.Pod
    		devices          []*podresourcesv1.ContainerDevices
    		expectedResponse *v1alpha1.ListPodResourcesResponse
    	}{
    		{
    			desc:             "no pods",
    			pods:             []*v1.Pod{},
    			devices:          []*podresourcesv1.ContainerDevices{},
    			expectedResponse: &v1alpha1.ListPodResourcesResponse{},
    		},
    		{
    			desc: "pod without devices",
    			pods: []*v1.Pod{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/cache/cache.go

    	key, err := framework.GetPodKey(pod)
    	if err != nil {
    		return err
    	}
    
    	cache.mu.Lock()
    	defer cache.mu.Unlock()
    
    	currState, ok := cache.podStates[key]
    	if ok && currState.pod.Spec.NodeName != pod.Spec.NodeName {
    		return fmt.Errorf("pod %v(%v) was assumed on %v but assigned to %v", key, klog.KObj(pod), pod.Spec.NodeName, currState.pod.Spec.NodeName)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 09:56:48 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  5. pkg/controller/tainteviction/taint_eviction.go

    		getPodsAssignedToNode: func(nodeName string) ([]*v1.Pod, error) {
    			objs, err := podIndexer.ByIndex("spec.nodeName", nodeName)
    			if err != nil {
    				return nil, err
    			}
    			pods := make([]*v1.Pod, 0, len(objs))
    			for _, obj := range objs {
    				pod, ok := obj.(*v1.Pod)
    				if !ok {
    					continue
    				}
    				pods = append(pods, pod)
    			}
    			return pods, nil
    		},
    		taintedNodes: make(map[string][]v1.Taint),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  6. cni/pkg/repair/repair_test.go

    			c := &Controller{cfg: tt.config}
    			assert.Equal(t, c.matchesFilter(tt.pod), tt.want)
    		})
    	}
    }
    
    func fakeClient(pods ...*corev1.Pod) kube.Client {
    	var csPods []runtime.Object
    
    	for _, pod := range pods {
    		csPods = append(csPods, pod.DeepCopy())
    	}
    	return kube.NewFakeClient(csPods...)
    }
    
    func makePodLabelMap(pods []*corev1.Pod) (podmap map[string]string) {
    	podmap = map[string]string{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/autoscaling/v2beta1/generated.proto

      // resource metric across all relevant pods, represented as a percentage of
      // the requested value of the resource for the pods.
      // +optional
      optional int32 targetAverageUtilization = 2;
    
      // targetAverageValue is the target value of the average of the
      // resource metric across all relevant pods, as a raw value (instead of as
      // a percentage of the request), similar to the "pods" metric source type.
      // +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/manager_test.go

    	})
    	pod2 := makePod(v1.ResourceList{
    		v1.ResourceName(res2.resourceName): res2.resourceQuantity,
    	})
    
    	activePods := []*v1.Pod{pod1, pod2}
    	podsStub.updateActivePods(activePods)
    
    	err = testManager.Allocate(pod1, &pod1.Spec.Containers[0])
    	as.Nil(err)
    	err = testManager.Allocate(pod2, &pod2.Spec.Containers[0])
    	as.Nil(err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  9. istioctl/pkg/util/handlers/handlers.go

    	sortBy := func(pods []*corev1.Pod) sort.Interface { return podutils.ByLogging(pods) }
    	timeout := 2 * time.Second
    	if getFirstPodFunc == nil {
    		getFirstPodFunc = polymorphichelpers.GetFirstPod
    	}
    	pod, _, err := getFirstPodFunc(client, namespace, selector, timeout, sortBy)
    	if err != nil {
    		return "", "", fmt.Errorf("no pods match %q", resname)
    	}
    	return pod.Name, namespace, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 06 15:01:41 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/interface.go

    	// to a map of currently waiting pods and return status with "Wait" code.
    	// Pod will remain waiting pod for the minimum duration returned by the Permit plugins.
    	RunPermitPlugins(ctx context.Context, state *CycleState, pod *v1.Pod, nodeName string) *Status
    
    	// WaitOnPermit will block, if the pod is a waiting pod, until the waiting pod is rejected or allowed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top