Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for makeOld (0.19 sec)

  1. pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates_test.go

    			pod:          st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(),
    			oldObj:       st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(),
    			newObj:       st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"queue-on-gates-become-empty": {
    			pod:          st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newPod:       st.MakePod().Label("service", "securityscan").Obj(),
    			oldPod:       st.MakePod().Label("service", "securityscan").Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		{
    			name:         "update a pod from match to non-match the pod affinity",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. src/go/types/termlist_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types
    
    import (
    	"strings"
    	"testing"
    )
    
    // maketl makes a term list from a string of the term list.
    func maketl(s string) termlist {
    	s = strings.ReplaceAll(s, " ", "")
    	names := strings.Split(s, "|")
    	r := make(termlist, len(names))
    	for i, n := range names {
    		r[i] = testTerm(n)
    	}
    	return r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pkg/controller/garbagecollector/graph_builder_test.go

    		makeID("v2", "kind", "ns1", "name", "uid"),
    		makeID("v3", "kind", "ns1", "name", "uid"),
    		makeID("v4", "kind", "ns1", "name", "uid"),
    		makeID("v5", "kind", "ns1", "name", "uid"),
    	}
    	orderedClusterReferences := []objectReference{
    		makeID("v1", "kind", "", "name", "uid"),
    		makeID("v2", "kind", "", "name", "uid"),
    		makeID("v3", "kind", "", "name", "uid"),
    		makeID("v4", "kind", "", "name", "uid"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 17 15:49:32 UTC 2020
    - 7.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/rest/delete_test.go

    				pod:     makePod(0),
    				options: makeOption(2),
    			},
    			// want 0
    			wantDeletionGracePeriodSeconds: utilpointer.Int64(0),
    			wantGracePeriodSeconds:         utilpointer.Int64(2),
    			wantGraceful:                   false,
    			wantGracefulPending:            false,
    		},
    
    		{
    			name: "when DeletionGracePeriodSeconds=1, GracePeriodSeconds=-1",
    			args: args{
    				pod:     makePod(1),
    				options: makeOption(-1),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 11:44:07 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. cni/pkg/repair/repair_test_helpers.go

    // Pod specs
    var (
    	brokenPodTerminating = makePod(makePodArgs{
    		PodName: "broken-pod-terminating",
    		Annotations: map[string]string{
    			"sidecar.istio.io/status": "something",
    		},
    		Labels: map[string]string{
    			"testlabel": "true",
    		},
    		NodeName:            "test-node",
    		InitContainerStatus: &brokenInitContainerTerminating,
    	})
    
    	brokenPodWaiting = makePod(makePodArgs{
    		PodName: "broken-pod-waiting",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 12 17:39:53 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/termlist_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types2
    
    import (
    	"strings"
    	"testing"
    )
    
    // maketl makes a term list from a string of the term list.
    func maketl(s string) termlist {
    	s = strings.ReplaceAll(s, " ", "")
    	names := strings.Split(s, "|")
    	r := make(termlist, len(names))
    	for i, n := range names {
    		r[i] = testTerm(n)
    	}
    	return r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 07 21:37:14 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/queuesort/priority_sort_test.go

    				PodInfo: mustNewPodInfo(t, st.MakePod().Priority(lowPriority).Obj()),
    			},
    			p2: &framework.QueuedPodInfo{
    				PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()),
    			},
    			expected: false, // p2 should be ahead of p1 in the queue
    		},
    		{
    			name: "p1.priority greater than p2.priority",
    			p1: &framework.QueuedPodInfo{
    				PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 12 14:11:04 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  9. pkg/kube/kclient/crdwatcher_test.go

    			// Happened sync
    			vsCalls.Inc()
    		}
    	}()
    	clienttest.MakeCRD(t, c, gvr.VirtualService)
    	c.RunAndWait(stop)
    	assert.EventuallyEqual(t, vsCalls.Load, 1)
    }
    
    func TestCRDWatcher(t *testing.T) {
    	stop := test.NewStop(t)
    	c := kube.NewFakeClient()
    
    	clienttest.MakeCRD(t, c, gvr.VirtualService)
    	vsCalls := atomic.NewInt32(0)
    
    	clienttest.MakeCRD(t, c, gvr.GatewayClass)
    
    	ctl := c.CrdWatcher()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/cpumanager/policy_none_test.go

    func TestNonePolicyAllocate(t *testing.T) {
    	policy := &nonePolicy{}
    
    	st := &mockState{
    		assignments:   state.ContainerCPUAssignments{},
    		defaultCPUSet: cpuset.New(1, 2, 3, 4, 5, 6, 7),
    	}
    
    	testPod := makePod("fakePod", "fakeContainer", "1000m", "1000m")
    
    	container := &testPod.Spec.Containers[0]
    	err := policy.Allocate(st, testPod, container)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top