- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for NodeInclusionPolicy (0.27 sec)
-
pkg/scheduler/framework/plugins/podtopologyspread/common.go
type topologySpreadConstraint struct { MaxSkew int32 TopologyKey string Selector labels.Selector MinDomains int32 NodeAffinityPolicy v1.NodeInclusionPolicy NodeTaintsPolicy v1.NodeInclusionPolicy } func (tsc *topologySpreadConstraint) matchNodeInclusionPolicies(pod *v1.Pod, node *v1.Node, require nodeaffinity.RequiredNodeAffinity) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
{key: "node", value: "node-b"}: 1, {key: "node", value: "node-x"}: 2, }, }, }, { name: "add a pod when scheduling node affinity unmatched pod with NodeInclusionPolicy disabled", preemptor: st.MakePod().Name("p").Label("foo", "").NodeAffinityNotIn("foo", []string{"bar"}). SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil). 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) -
pkg/registry/core/pod/strategy_test.go
enableNodeInclusionPolicy bool }{ { name: "nodeInclusionPolicy enabled with topology unset", topologySpreadConstraints: emptyConstraints, wantTopologySpreadConstraints: emptyConstraints, enableNodeInclusionPolicy: true, }, { name: "nodeInclusionPolicy enabled with topology configured", topologySpreadConstraints: defaultConstraints,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
pkg/api/pod/util.go
c.SecurityContext.ProcMount = &defaultProcMount } return true }) } } // dropDisabledNodeInclusionPolicyFields removes disabled fields from PodSpec related // to NodeInclusionPolicy only if it is not used by the old spec. func dropDisabledNodeInclusionPolicyFields(podSpec, oldPodSpec *api.PodSpec) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
pkg/apis/core/types.go
ScheduleAnyway UnsatisfiableConstraintAction = "ScheduleAnyway" ) // NodeInclusionPolicy defines the type of node inclusion policy // +enum type NodeInclusionPolicy string const ( // NodeInclusionPolicyIgnore means ignore this scheduling directive when calculating pod topology spread skew. NodeInclusionPolicyIgnore NodeInclusionPolicy = "Ignore"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 268.9K bytes - Viewed (0) -
pkg/scheduler/testing/wrappers.go
// into the inner pod. func (p *PodWrapper) SpreadConstraint(maxSkew int, tpKey string, mode v1.UnsatisfiableConstraintAction, selector *metav1.LabelSelector, minDomains *int32, nodeAffinityPolicy, nodeTaintsPolicy *v1.NodeInclusionPolicy, matchLabelKeys []string) *PodWrapper { c := v1.TopologySpreadConstraint{ MaxSkew: int32(maxSkew), TopologyKey: tpKey, WhenUnsatisfiable: mode, LabelSelector: selector,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 42.1K bytes - Viewed (0) -
staging/src/k8s.io/api/core/v1/types.go
ScheduleAnyway UnsatisfiableConstraintAction = "ScheduleAnyway" ) // NodeInclusionPolicy defines the type of node inclusion policy // +enum type NodeInclusionPolicy string const ( // NodeInclusionPolicyIgnore means ignore this scheduling directive when calculating pod topology spread skew. NodeInclusionPolicyIgnore NodeInclusionPolicy = "Ignore"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 390.8K bytes - Viewed (0) -
pkg/apis/core/v1/zz_generated.conversion.go
out.LabelSelector = (*metav1.LabelSelector)(unsafe.Pointer(in.LabelSelector)) out.MinDomains = (*int32)(unsafe.Pointer(in.MinDomains)) out.NodeAffinityPolicy = (*core.NodeInclusionPolicy)(unsafe.Pointer(in.NodeAffinityPolicy)) out.NodeTaintsPolicy = (*core.NodeInclusionPolicy)(unsafe.Pointer(in.NodeTaintsPolicy)) out.MatchLabelKeys = *(*[]string)(unsafe.Pointer(&in.MatchLabelKeys)) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 472.1K bytes - Viewed (0) -
pkg/apis/core/zz_generated.deepcopy.go
**out = **in } if in.NodeAffinityPolicy != nil { in, out := &in.NodeAffinityPolicy, &out.NodeAffinityPolicy *out = new(NodeInclusionPolicy) **out = **in } if in.NodeTaintsPolicy != nil { in, out := &in.NodeTaintsPolicy, &out.NodeTaintsPolicy *out = new(NodeInclusionPolicy) **out = **in } if in.MatchLabelKeys != nil { in, out := &in.MatchLabelKeys, &out.MatchLabelKeys
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 181.5K bytes - Viewed (0) -
staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go
**out = **in } if in.NodeAffinityPolicy != nil { in, out := &in.NodeAffinityPolicy, &out.NodeAffinityPolicy *out = new(NodeInclusionPolicy) **out = **in } if in.NodeTaintsPolicy != nil { in, out := &in.NodeTaintsPolicy, &out.NodeTaintsPolicy *out = new(NodeInclusionPolicy) **out = **in } if in.MatchLabelKeys != nil { in, out := &in.MatchLabelKeys, &out.MatchLabelKeys
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 181.9K bytes - Viewed (0)