Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for makeOld (0.11 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. 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)
  5. 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)
  6. pkg/controller/volume/ephemeral/controller_test.go

    	testPodUID          = types.UID("uidpod1")
    	otherNamespace      = "not-my-namespace"
    	ephemeralVolumeName = "ephemeral-volume"
    
    	testPod               = makePod(testPodName, testNamespace, testPodUID)
    	testPodWithEphemeral  = makePod(testPodName, testNamespace, testPodUID, *makeEphemeralVolume(ephemeralVolumeName))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    		return server, storage
    	}
    	server, etcdStorage := newEtcdTestStorage(t, "")
    	defer server.Terminate(t)
    	versioner := storage.APIObjectVersioner{}
    
    	makePod := func(name string) *example.Pod {
    		return &example.Pod{
    			ObjectMeta: metav1.ObjectMeta{Namespace: "ns", Name: name},
    		}
    	}
    	createPod := func(obj *example.Pod) *example.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/cases/fold.go

    }
    
    func (t *caseFolder) Span(src []byte, atEOF bool) (n int, err error) {
    	c := context{src: src, atEOF: atEOF}
    	for c.next() && isFoldFull(&c) {
    		c.checkpoint()
    	}
    	return c.retSpan()
    }
    
    func makeFold(o options) transform.SpanningTransformer {
    	// TODO: Special case folding, through option Language, Special/Turkic, or
    	// both.
    	// TODO: Implement Compact options.
    	return &caseFolder{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 935 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top