Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for SpreadConstraint (0.28 sec)

  1. pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go

    			pod: st.MakePod().Name("p").
    				SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				SpreadConstraint(1, "node", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			oldNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Label("node", "node1").Label("foo", "bar").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 06:30:53 UTC 2023
    - 13K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    		want                      *preScoreState
    		enableNodeInclusionPolicy bool
    	}{
    		{
    			name: "normal case",
    			pod: st.MakePod().Name("p").Label("foo", "").
    				SpreadConstraint(1, "zone", v1.ScheduleAnyway, fooSelector, nil, nil, nil, nil).
    				SpreadConstraint(1, v1.LabelHostname, v1.ScheduleAnyway, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			nodes: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    			pod: st.MakePod().Name("p").Label("foo", "").
    				SpreadConstraint(1, "zone", v1.ScheduleAnyway, fooSelector, nil, nil, nil, nil).
    				SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				SpreadConstraint(1, "node", v1.ScheduleAnyway, fooSelector, nil, nil, nil, nil).
    				SpreadConstraint(1, "node", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			nodes: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    		matchNum := 0
    		if tpCount, ok := s.TpPairToMatchNum[pair]; ok {
    			matchNum = tpCount
    		}
    		skew := matchNum + selfMatchNum - minMatchNum
    		if skew > int(c.MaxSkew) {
    			logger.V(5).Info("Node failed spreadConstraint: matchNum + selfMatchNum - minMatchNum > maxSkew", "node", klog.KObj(node), "topologyKey", tpKey, "matchNum", matchNum, "selfMatchNum", selfMatchNum, "minMatchNum", minMatchNum, "maxSkew", c.MaxSkew)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. pkg/scheduler/testing/wrappers.go

    	labelSelector := MakeLabelSelector().NotIn(labelKey, vals).Obj()
    	p.PodAntiAffinity(topologyKey, labelSelector, kind)
    	return p
    }
    
    // SpreadConstraint constructs a TopologySpreadConstraint object and injects
    // into the inner pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			testPods: []*v1.Pod{
    				st.MakePod().Name("p").UID("p").Label("foo", "").Priority(highPriority).
    					SpreadConstraint(1, "zone", v1.DoNotSchedule, st.MakeLabelSelector().Exists("foo").Obj(), nil, nil, nil, nil).
    					SpreadConstraint(1, "hostname", v1.DoNotSchedule, st.MakeLabelSelector().Exists("foo").Obj(), nil, nil, nil, nil).
    					Obj(),
    			},
    			initPods: []*v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  7. pkg/scheduler/schedule_one_test.go

    					"Filter",
    				),
    				tf.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
    			},
    			nodes: []string{"node1", "node2"},
    			pod: st.MakePod().Name("p").UID("p").Label("foo", "").SpreadConstraint(1, "hostname", v1.DoNotSchedule, &metav1.LabelSelector{
    				MatchExpressions: []metav1.LabelSelectorRequirement{
    					{
    						Key:      "foo",
    						Operator: metav1.LabelSelectorOpExists,
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top