Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 76 for makeOld (0.21 sec)

  1. cni/pkg/repair/repair_test.go

    	"istio.io/istio/tools/istio-iptables/pkg/constants"
    )
    
    func TestMatchesFilter(t *testing.T) {
    	makeDetectPod := func(name string, terminationMessage string, exitCode int) *corev1.Pod {
    		return makePod(makePodArgs{
    			PodName:     name,
    			Annotations: map[string]string{"sidecar.istio.io/status": "something"},
    			InitContainerStatus: &corev1.ContainerStatus{
    				Name: constants.ValidationContainerName,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/workload_prep.go

    			Label(v1.LabelHostname, fmt.Sprintf("node%d", i)).Obj()
    		allNodes = append(allNodes, node)
    	}
    	filteredNodes = allNodes[:filteredNodesNum]
    	// build pods
    	for i := 0; i < existingPodsNum; i++ {
    		podWrapper := MakePod().Name(fmt.Sprintf("pod%d", i)).Node(fmt.Sprintf("node%d", i%allNodesNum))
    		// apply labels[0], labels[0,1], ..., labels[all] to each pod in turn
    		for _, p := range labelPairs[:i%len(labelPairs)+1] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 13:43:36 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. pkg/kube/kclient/clienttest/crd.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    	metadatafake "k8s.io/client-go/metadata/fake"
    
    	"istio.io/istio/pkg/config/schema/gvr"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test"
    )
    
    func MakeCRD(t test.Failer, c kube.Client, g schema.GroupVersionResource) {
    	t.Helper()
    	MakeCRDWithAnnotations(t, c, g, nil)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/fake.go

    			assert.NoError(t, queue.WaitForClose(c.queue, time.Second*5))
    		})
    	}
    	c.stop = stop
    	if cleanupStop {
    		t.Cleanup(func() {
    			close(stop)
    		})
    	}
    	for _, crd := range opts.CRDs {
    		clienttest.MakeCRD(t, c.client, crd)
    	}
    	opts.Client.RunAndWait(c.stop)
    	var fx *xdsfake.Updater
    	if x, ok := xdsUpdater.(*xdsfake.Updater); ok {
    		fx = x
    	}
    
    	if !opts.SkipRun {
    		go c.Run(c.stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/defaultbinder/default_binder_test.go

    	"k8s.io/klog/v2/ktesting"
    	frameworkruntime "k8s.io/kubernetes/pkg/scheduler/framework/runtime"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    )
    
    func TestDefaultBinder(t *testing.T) {
    	testPod := st.MakePod().Name("foo").Namespace("ns").Obj()
    	testNode := "foohost.kubernetes.mydomain.com"
    	tests := []struct {
    		name        string
    		injectErr   error
    		wantBinding *v1.Binding
    	}{
    		{
    			name: "successful",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 23 02:17:34 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. src/net/http/client_test.go

    	}{
    		{
    			desc: "Strip password from error message",
    			in:   "http://user:password@dummy.faketld/",
    			out:  `Get "http://user:***@dummy.faketld/": dummy impl`,
    		},
    		{
    			desc: "Don't Strip password from domain name",
    			in:   "http://user:password@password.faketld/",
    			out:  `Get "http://user:***@password.faketld/": dummy impl`,
    		},
    		{
    			desc: "Don't Strip password from path",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/crdclient/client_test.go

    		if len(l) != 0 {
    			return fmt.Errorf("expected no items returned for unknown CRD")
    		}
    		return nil
    	}, retry.Timeout(time.Second*5), retry.Converge(5))
    
    	clienttest.MakeCRD(t, fake, r.GroupVersionResource())
    
    	retry.UntilSuccessOrFail(t, func() error {
    		l := store.List(r.GroupVersionKind(), "")
    		if len(l) != 1 {
    			return fmt.Errorf("expected items returned")
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 02:58:52 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/types_test.go

    				t.Errorf("expected: %#v, got: %#v", test.expected, test.resource)
    			}
    		})
    	}
    }
    
    func TestNewNodeInfo(t *testing.T) {
    	nodeName := "test-node"
    	pods := []*v1.Pod{
    		st.MakePod().UID("test-1").Namespace("node_info_cache_test").Name("test-1").Node(nodeName).
    			Containers([]v1.Container{st.MakeContainer().ResourceRequests(map[v1.ResourceName]string{
    				v1.ResourceCPU:    "100m",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity_test.go

    		runPreFilter        bool
    	}{
    		{
    			name: "missing labels",
    			pod: st.MakePod().NodeSelector(map[string]string{
    				"foo": "bar",
    			}).Obj(),
    			wantStatus:   framework.NewStatus(framework.UnschedulableAndUnresolvable, ErrReasonPod),
    			runPreFilter: true,
    		},
    		{
    			name: "same labels",
    			pod: st.MakePod().NodeSelector(map[string]string{
    				"foo": "bar",
    			}).Obj(),
    			labels: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 38.7K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/volumebinding/test_utils.go

    	pvcb.PersistentVolumeClaim.Status = v1.PersistentVolumeClaimStatus{
    		Phase: phase,
    	}
    	return pvcb
    }
    
    type podBuilder struct {
    	*v1.Pod
    }
    
    func makePod(name string) podBuilder {
    	pb := podBuilder{Pod: &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			Namespace: v1.NamespaceDefault,
    		},
    	}}
    	pb.Pod.Spec.Volumes = make([]v1.Volume, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top