- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 79 for TopologyKey (0.19 sec)
-
pkg/scheduler/framework/plugins/interpodaffinity/scoring.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 10.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/scoring.go
continue } for i, constraint := range s.Constraints { // per-node counts are calculated during Score. if constraint.TopologyKey == v1.LabelHostname { continue } pair := topologyPair{key: constraint.TopologyKey, value: node.Node().Labels[constraint.TopologyKey]} if s.TopologyPairToPodCounts[pair] == nil { s.TopologyPairToPodCounts[pair] = new(int64) topoSize[i]++ } } }
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/framework/plugins/podtopologyspread/filtering.go
} if pl.enableNodeInclusionPolicyInPodTopologySpread && !constraint.matchNodeInclusionPolicies(preemptorPod, node, requiredSchedulingTerm) { continue } k, v := constraint.TopologyKey, node.Labels[constraint.TopologyKey] pair := topologyPair{key: k, value: v} s.TpPairToMatchNum[pair] += delta s.TpKeyToCriticalPaths[k].update(v, s.TpPairToMatchNum[pair]) } }
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/testing/wrappers.go
func (p *PodWrapper) PodAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper { labelSelector := MakeLabelSelector().Exists(labelKey).Obj() p.PodAffinity(topologyKey, labelSelector, kind) return p } // PodAntiAffinityExists creates a PodAntiAffinity with the operator "Exists" // and injects into the inner pod. func (p *PodWrapper) PodAntiAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 42.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/filtering.go
if len(state.existingAntiAffinityCounts) > 0 { // Iterate over topology pairs to get any of the pods being affected by // the scheduled pod anti-affinity terms for topologyKey, topologyValue := range nodeInfo.Node().Labels { tp := topologyPair{key: topologyKey, value: topologyValue} if state.existingAntiAffinityCounts[tp] > 0 { return false } } } return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 01 10:24:54 UTC 2023 - 14.6K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_pluginargs_test.go
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
c := &constraints[idx] for i := range constraints[:idx] { other := &constraints[i] if c.TopologyKey == other.TopologyKey && c.WhenUnsatisfiable == other.WhenUnsatisfiable { return field.Duplicate(path.Index(idx), fmt.Sprintf("{%v, %v}", c.TopologyKey, c.WhenUnsatisfiable)) } } return nil }
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/interpodaffinity/scoring_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 44.8K bytes - Viewed (0) -
pkg/api/pod/warnings_test.go
{ TopologyKey: `foo`, LabelSelector: &metav1.LabelSelector{}, }, { TopologyKey: `beta.kubernetes.io/arch`, LabelSelector: &metav1.LabelSelector{}, }, { TopologyKey: `beta.kubernetes.io/os`, LabelSelector: &metav1.LabelSelector{}, }, { TopologyKey: `failure-domain.beta.kubernetes.io/region`,
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/interpodaffinity/plugin.go
if _, ok := modifiedNode.Labels[term.TopologyKey]; ok { logger.V(5).Info("a node with matched pod anti-affinity topologyKey was added/updated and it may make pod schedulable", "pod", klog.KObj(pod), "node", klog.KObj(modifiedNode)) return framework.Queue, err } } logger.V(5).Info("a node is added/updated but doesn't have any topologyKey which matches pod affinity/anti-affinity",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 03:08:44 UTC 2024 - 10.3K bytes - Viewed (0)