Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for DoNotSchedule (0.23 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(),
    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Label("node", "node1").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/filtering_test.go

    				},
    			},
    		},
    		{
    			name: "normal case with two spreadConstraints",
    			pod: st.MakePod().Name("p").Label("foo", "").
    				SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				SpreadConstraint(1, "node", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node-a").Label("zone", "zone1").Label("node", "node-a").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    				DefaultConstraints: []v1.TopologySpreadConstraint{
    					{
    						MaxSkew:           1,
    						TopologyKey:       "node",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    					},
    					{
    						MaxSkew:           2,
    						TopologyKey:       "node",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    					},
    				},
    				DefaultingType: config.ListDefaulting,
    			},
    			wantErrs: field.ErrorList{
    				&field.Error{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/plugin.go

    			pod.Spec.TopologySpreadConstraints,
    			pod.Labels,
    			v1.DoNotSchedule,
    		)
    		if err != nil {
    			return nil, fmt.Errorf("obtaining pod's hard topology spread constraints: %w", err)
    		}
    	} else {
    		constraints, err = pl.buildDefaultConstraints(pod, v1.DoNotSchedule)
    		if err != nil {
    			return nil, fmt.Errorf("setting default hard topology spread constraints: %w", err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. pkg/scheduler/apis/config/v1/defaults_test.go

    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    			},
    			want: &configv1.PodTopologySpreadArgs{
    				DefaultConstraints: []v1.TopologySpreadConstraint{
    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    	}
    	return allErrs
    }
    
    func validateWhenUnsatisfiable(p *field.Path, v v1.UnsatisfiableConstraintAction) *field.Error {
    	supportedScheduleActions := sets.New(string(v1.DoNotSchedule), string(v1.ScheduleAnyway))
    
    	if len(v) == 0 {
    		return field.Required(p, "can not be empty")
    	}
    	if !supportedScheduleActions.Has(string(v)) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  7. pkg/registry/core/pod/strategy_test.go

    			{
    				WhenUnsatisfiable: api.DoNotSchedule,
    				TopologyKey:       "kubernetes.io/hostname",
    				MaxSkew:           1,
    			},
    		}
    		defaultConstraints = []api.TopologySpreadConstraint{
    			{
    				NodeAffinityPolicy: &honor,
    				NodeTaintsPolicy:   &ignore,
    				WhenUnsatisfiable:  api.DoNotSchedule,
    				TopologyKey:        "kubernetes.io/hostname",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  8. 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)
  9. pkg/apis/core/validation/validation_test.go

    			TopologyKey:       "k8s.io/zone",
    			WhenUnsatisfiable: core.DoNotSchedule,
    			MinDomains:        utilpointer.Int32(3),
    		}},
    		wantFieldErrors: field.ErrorList{},
    	}, {
    		name: "missing MaxSkew",
    		constraints: []core.TopologySpreadConstraint{
    			{TopologyKey: "k8s.io/zone", WhenUnsatisfiable: core.DoNotSchedule},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    						MaxSkew:           1,
    						TopologyKey:       v1.LabelHostname,
    						WhenUnsatisfiable: v1.ScheduleAnyway,
    					},
    					{MaxSkew: 2,
    						TopologyKey:       "rack",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    					},
    					{MaxSkew: 2, TopologyKey: "planet", WhenUnsatisfiable: v1.ScheduleAnyway},
    				},
    				DefaultingType: config.ListDefaulting,
    			},
    			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)
Back to top