Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for DoNotSchedule (1.39 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/apis/core/types.go

    // unsatisfiable constraint.
    type UnsatisfiableConstraintAction string
    
    const (
    	// DoNotSchedule instructs the scheduler not to schedule the pod
    	// when constraints are not satisfied.
    	DoNotSchedule UnsatisfiableConstraintAction = "DoNotSchedule"
    	// ScheduleAnyway instructs the scheduler to schedule the pod
    	// even if constraints are not satisfied.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  7. pkg/scheduler/schedule_one_test.go

    				),
    				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)
  8. staging/src/k8s.io/api/core/v1/types.go

    }
    
    // +enum
    type UnsatisfiableConstraintAction string
    
    const (
    	// DoNotSchedule instructs the scheduler not to schedule the pod
    	// when constraints are not satisfied.
    	DoNotSchedule UnsatisfiableConstraintAction = "DoNotSchedule"
    	// ScheduleAnyway instructs the scheduler to schedule the pod
    	// even if constraints are not satisfied.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/generated.proto

    message TopologySpreadConstraint {
      // MaxSkew describes the degree to which pods may be unevenly distributed.
      // When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
      // between the number of matching pods in the target topology and the global minimum.
      // The global minimum is the minimum number of matching pods in an eligible domain
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 280.3K bytes
    - Viewed (0)
  10. pkg/apis/core/validation/validation.go

    	}
    	// When MinDomains is non-nil, whenUnsatisfiable must be DoNotSchedule.
    	if action != core.DoNotSchedule {
    		allErrs = append(allErrs, field.Invalid(fldPath, minDomains, fmt.Sprintf("can only use minDomains if whenUnsatisfiable=%s, not %s", core.DoNotSchedule, action)))
    	}
    	return allErrs
    }
    
    // ValidateTopologyKey tests that the argument is a valid TopologyKey.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top