Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 94 for Pods (0.04 sec)

  1. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    	s.addPods(t, "127.0.0.1", "pod1", "sa1", map[string]string{"app": "a"}, nil, true, corev1.PodRunning)
    	s.assertEvent(t, s.podXdsName("pod1"))
    
    	// Now add a service that will select pods with label "a".
    	s.addService(t, "svc1",
    		map[string]string{},
    		map[string]string{},
    		[]int32{80}, map[string]string{"app": "a"}, "10.0.0.1")
    	s.assertEvent(t, s.podXdsName("pod1"), s.svcXdsName("svc1"))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server_test.go

    }
    
    func TestTrimURLPath(t *testing.T) {
    	tests := []struct {
    		path, expected string
    	}{
    		{"", ""},
    		{"//", ""},
    		{"/pods", "pods"},
    		{"pods", "pods"},
    		{"pods/", "pods"},
    		{"good/", "good"},
    		{"pods/probes", "pods"},
    		{"metrics", "metrics"},
    		{"metrics/resource", "metrics/resource"},
    		{"metrics/hello", "metrics/hello"},
    	}
    
    	for _, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  3. plugin/pkg/admission/limitranger/admission_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/serviceregistry_test.go

    			Address: pod.Status.PodIP,
    			Port:    80,
    		}}
    		expectServiceEndpoints(t, fx, expectedSvc, 80, instances)
    
    		// when pods become unready, we should see the instances being removed from the registry
    		setPodUnready(pod)
    		_, err := kube.CoreV1().Pods(pod.Namespace).UpdateStatus(context.TODO(), pod, metav1.UpdateOptions{})
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_utils_test.go

    	}
    }
    
    func TestAscendingOrdinal(t *testing.T) {
    	set := newStatefulSet(10)
    	pods := make([]*v1.Pod, 10)
    	perm := rand.Perm(10)
    	for i, v := range perm {
    		pods[i] = newStatefulSetPod(set, v)
    	}
    	sort.Sort(ascendingOrdinal(pods))
    	if !sort.IsSorted(ascendingOrdinal(pods)) {
    		t.Error("ascendingOrdinal fails to sort Pods")
    	}
    }
    
    func TestOverlappingStatefulSets(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  6. pkg/apis/autoscaling/validation/validation_test.go

    					Value:         7,
    					PeriodSeconds: 8,
    				}},
    			},
    		},
    		msg: `spec.behavior.scaleUp.policies[0].type: Unsupported value: "hm": supported values: "Percent", "Pods"`,
    	}, {
    		behavior: autoscaling.HorizontalPodAutoscalerBehavior{
    			ScaleUp: &autoscaling.HPAScalingRules{
    				Policies: []autoscaling.HPAScalingPolicy{{
    					Type:  autoscaling.PodsScalingPolicy,
    					Value: 8,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/pv_controller.go

    	pods := []*v1.Pod{}
    	objs, err := ctrl.podIndexer.ByIndex(common.PodPVCIndex, key)
    	if err != nil {
    		return pods, err
    	}
    	for _, obj := range objs {
    		pod, ok := obj.(*v1.Pod)
    		if !ok {
    			continue
    		}
    		pods = append(pods, pod)
    	}
    	return pods, err
    }
    
    // isVolumeUsed returns list of active pods that use given PV.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    			continue
    		}
    		podUID := kubetypes.UID(s.Metadata.Uid)
    		if _, ok := pods[podUID]; !ok {
    			pods[podUID] = &kubecontainer.Pod{
    				ID:        podUID,
    				Name:      s.Metadata.Name,
    				Namespace: s.Metadata.Namespace,
    			}
    		}
    		p := pods[podUID]
    		converted, err := m.sandboxToKubeContainer(s)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.31.md

    - Added flag to `kubectl logs` called `--all-pods` to get all pods from a object that uses a pod selector. ([#124732](https://github.com/kubernetes/kubernetes/pull/124732), [@cmwylie19](https://github.com/cmwylie19)) [SIG CLI and Testing]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:34:14 UTC 2024
    - 60.3K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    )
    
    func makeResources(milliCPU, memory, pods, extendedA, storage, hugePageA int64) v1.ResourceList {
    	return v1.ResourceList{
    		v1.ResourceCPU:              *resource.NewMilliQuantity(milliCPU, resource.DecimalSI),
    		v1.ResourceMemory:           *resource.NewQuantity(memory, resource.BinarySI),
    		v1.ResourcePods:             *resource.NewQuantity(pods, resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
Back to top