Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for initialPods (0.12 sec)

  1. pkg/kube/krt/bench_test.go

    		n--
    		<-c
    	}
    }
    
    func BenchmarkControllers(b *testing.B) {
    	log.FindScope("krt").SetOutputLevel(log.InfoLevel)
    	watch.DefaultChanSize = 100_000
    	initialPods := []*v1.Pod{}
    	for i := 0; i < 1000; i++ {
    		initialPods = append(initialPods, &v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      fmt.Sprintf("pod-%d", i),
    				Namespace: fmt.Sprintf("ns-%d", i%2),
    				Labels: map[string]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top