Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for initNodes (0.24 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    		// Setup
    		testEnv := newTestBinder(t, ctx)
    		testEnv.initVolumes(scenario.pvs, scenario.pvs)
    
    		var node *v1.Node
    		if len(scenario.initNodes) > 0 {
    			testEnv.initNodes(scenario.initNodes)
    			node = scenario.initNodes[0]
    		} else {
    			node = node1
    		}
    
    		if len(scenario.initCSINodes) > 0 {
    			testEnv.initCSINodes(scenario.initCSINodes)
    		}
    
    		// a. Init pvc cache
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    	tests := []struct {
    		name                    string
    		args                    *config.DefaultPreemptionArgs
    		nodeNames               []string
    		testPods                []*v1.Pod
    		initPods                []*v1.Pod
    		registerPlugins         []tf.RegisterPluginFunc
    		pdbs                    []*policy.PodDisruptionBudget
    		fakeFilterRC            framework.Code // return code for fake filter plugin
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/preemption/preemption_test.go

    				}
    			}
    		})
    	}
    }
    
    func TestDryRunPreemption(t *testing.T) {
    	tests := []struct {
    		name               string
    		nodes              []*v1.Node
    		testPods           []*v1.Pod
    		initPods           []*v1.Pod
    		numViolatingVictim int
    		expected           [][]Candidate
    	}{
    		{
    			name: "no pdb violation",
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(veryLargeRes).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/typecheck.go

    		tcFunc(n.(*ir.Func))
    		return n
    	}
    
    	// No return n here!
    	// Individual cases can type-assert n, introducing a new one.
    	// Each must execute its own return n.
    }
    
    func typecheckargs(n ir.InitNode) {
    	var list []ir.Node
    	switch n := n.(type) {
    	default:
    		base.Fatalf("typecheckargs %+v", n.Op())
    	case *ir.CallExpr:
    		list = n.Args
    		if n.IsDDD {
    			Exprs(list)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top