- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for TopologySpreadConstraint (0.25 sec)
-
pkg/scheduler/framework/plugins/podtopologyspread/plugin.go
return framework.QueueSkip, nil } // getConstraints extracts topologySpreadConstraint(s) from the Pod spec. // If the Pod doesn't have any topologySpreadConstraint, it returns default constraints. func (pl *PodTopologySpread) getConstraints(pod *v1.Pod) ([]topologySpreadConstraint, error) { var constraints []topologySpreadConstraint var err error if len(pod.Spec.TopologySpreadConstraints) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 12.7K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_pluginargs_test.go
cases := map[string]struct { args *config.PodTopologySpreadArgs wantErrs field.ErrorList }{ "valid config": { args: &config.PodTopologySpreadArgs{ DefaultConstraints: []v1.TopologySpreadConstraint{ { MaxSkew: 1, TopologyKey: "node", WhenUnsatisfiable: v1.DoNotSchedule, }, { MaxSkew: 2, TopologyKey: "zone",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_pluginargs.go
} } if len(allErrs) == 0 { return nil } return allErrs.ToAggregate() } func validateDefaultingType(p *field.Path, v config.PodTopologySpreadConstraintsDefaulting, constraints []v1.TopologySpreadConstraint) *field.Error { if v != config.SystemDefaulting && v != config.ListDefaulting { return field.NotSupported(p, v, []string{string(config.SystemDefaulting), string(config.ListDefaulting)}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 09:29:49 UTC 2023 - 12.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/filtering.go
// An empty preFilterState object denotes it's a legit state and is set in PreFilter phase. // Fields are exported for comparison during testing. type preFilterState struct { Constraints []topologySpreadConstraint // We record 2 critical paths instead of all critical paths here. // criticalPaths[0].MatchNum always holds the minimum matching number.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 12.4K bytes - Viewed (1) -
pkg/scheduler/apis/config/scheme/scheme_test.go
}, }, }, }, { Name: "PodTopologySpread", Args: &config.PodTopologySpreadArgs{ DefaultConstraints: []corev1.TopologySpreadConstraint{ {MaxSkew: 1, TopologyKey: "zone", WhenUnsatisfiable: corev1.ScheduleAnyway}, }, DefaultingType: config.SystemDefaulting, }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 22.2K bytes - Viewed (0) -
pkg/scheduler/apis/config/v1/defaults_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 06 15:03:04 UTC 2024 - 27.9K bytes - Viewed (0) -
pkg/api/pod/warnings_test.go
{Preference: api.NodeSelectorTerm{MatchExpressions: []api.NodeSelectorRequirement{{Key: `foo`}}}}, }, }, }, TopologySpreadConstraints: []api.TopologySpreadConstraint{ {TopologyKey: `foo`}, }, HostAliases: []api.HostAlias{ {IP: "1.1.1.1"}, {IP: "2.2.2.2"}, }, ImagePullSecrets: []api.LocalObjectReference{ {Name: "secret1"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 42.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/scoring.go
const invalidScore = -1 // preScoreState computed at PreScore and used at Score. // Fields are exported for comparison during testing. type preScoreState struct { Constraints []topologySpreadConstraint // IgnoredNodes is a set of node names which miss some Constraints[*].topologyKey. IgnoredNodes sets.Set[string] // TopologyPairToPodCounts is keyed with topologyPair, and valued with the number of matching pods.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 10.1K bytes - Viewed (0) -
pkg/scheduler/apis/config/v1/zz_generated.conversion.go
} func autoConvert_v1_PodTopologySpreadArgs_To_config_PodTopologySpreadArgs(in *v1.PodTopologySpreadArgs, out *config.PodTopologySpreadArgs, s conversion.Scope) error { out.DefaultConstraints = *(*[]corev1.TopologySpreadConstraint)(unsafe.Pointer(&in.DefaultConstraints)) out.DefaultingType = config.PodTopologySpreadConstraintsDefaulting(in.DefaultingType) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 19 18:47:23 UTC 2024 - 46.9K bytes - Viewed (0) -
pkg/scheduler/apis/config/zz_generated.deepcopy.go
*out = *in out.TypeMeta = in.TypeMeta if in.DefaultConstraints != nil { in, out := &in.DefaultConstraints, &out.DefaultConstraints *out = make([]v1.TopologySpreadConstraint, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 22:02:57 UTC 2022 - 16.2K bytes - Viewed (0)