Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WithInformerFactory (0.15 sec)

  1. pkg/scheduler/framework/plugins/testing/testing.go

    	informerFactory := informers.NewSharedInformerFactory(fake.NewSimpleClientset(objs...), 0)
    	fh, err := frameworkruntime.NewFramework(ctx, nil, nil,
    		frameworkruntime.WithSnapshotSharedLister(sharedLister),
    		frameworkruntime.WithInformerFactory(informerFactory))
    	if err != nil {
    		tb.Fatalf("Failed creating framework runtime: %v", err)
    	}
    	p, err := pf(ctx, config, fh)
    	if err != nil {
    		tb.Fatal(err)
    	}
    	informerFactory.Start(ctx.Done())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top