Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 79 for makeOld (0.26 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    		watchers = append(watchers, w)
    	}
    
    	makePod := func(name, rv string) *examplev1.Pod {
    		return &examplev1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:            name,
    				Namespace:       "ns",
    				ResourceVersion: rv,
    			},
    		}
    	}
    	pod1 := makePod("pod", "1001")
    	pod2 := makePod("pod", "1002")
    	pod3 := makePod("pod", "1003")
    
    	cacher.watchCache.Add(pod1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	var pods = []*v1.Pod{
    		st.MakePod().Name("p0").Namespace("ns1").Annotation("annot1", "val1").NominatedNodeName("node1").Obj(),
    		st.MakePod().Name("p1").Namespace("ns1").Annotation("annot", "val").Obj(),
    		st.MakePod().Name("p2").Namespace("ns2").Annotation("annot2", "val2").Annotation("annot3", "val3").NominatedNodeName("node3").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  3. pkg/kube/kclient/client_test.go

    		wasm.AddEventHandler(clienttest.TrackerHandler(tracker))
    		go constantlyAccessForRaceDetection(stop, wasm)
    
    		// CRD and Delayed client are ready to go by the time we start informers
    		clienttest.MakeCRD(t, c, gvr.WasmPlugin)
    		c.RunAndWait(stop)
    
    		wt.Create(&istioclient.WasmPlugin{
    			ObjectMeta: metav1.ObjectMeta{Name: "name", Namespace: "default"},
    		})
    		assert.EventuallyEqual(t, func() int {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 15:12:54 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    		// If nil, use pod PVCs
    		cachePVCs []*v1.PersistentVolumeClaim
    		// If nil, makePod with podPVCs
    		pod *v1.Pod
    
    		// Expected podBindingCache fields
    		expectedBindings []*BindingInfo
    
    		// Expected return values
    		reasons    ConflictReasons
    		shouldFail bool
    	}
    	scenarios := map[string]scenarioType{
    		"no-volumes": {
    			pod: makePod("test-pod").
    				withNamespace("testns").
    				withNodeName("node1").Pod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. pkg/api/pod/util_test.go

    			// preStop
    			// container
    			{
    				oldPod := makePod([]api.Container{makeContainer(tc.oldLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    				newPod := makePod([]api.Container{makeContainer(tc.newLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    				expectPod := makePod([]api.Container{makeContainer(tc.expectLifecycleHandler.DeepCopy(), nil)}, nil, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K 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. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformTestFixture.groovy

                            parameters.inputFiles.from(configurations.transform.incoming.artifactView { attributes.attribute(color, 'red') }.files)
                        }
                        registerTransform(MakeRed) {
                            from.attribute(color, 'blue')
                            to.attribute(color, 'red')
                        }
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 20 15:06:39 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  10. pkg/scheduler/scheduler_test.go

    					},
    				},
    			},
    			waitSchedulingPods: []*v1.Pod{
    				st.MakePod().Name("pod1").UID("pod1").SchedulerName(testSchedulerProfile1).Obj(),
    				st.MakePod().Name("pod2").UID("pod2").SchedulerName(testSchedulerProfile1).Obj(),
    				st.MakePod().Name("pod3").UID("pod3").SchedulerName(testSchedulerProfile2).Obj(),
    				st.MakePod().Name("pod4").UID("pod4").SchedulerName(testSchedulerProfile3).Obj(),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
Back to top