Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for podMatchesAllAffinityTerms (0.32 sec)

  1. pkg/scheduler/framework/plugins/interpodaffinity/plugin.go

    	if modifiedPod != nil && originalPod != nil {
    		if !podMatchesAllAffinityTerms(terms, originalPod) && podMatchesAllAffinityTerms(terms, modifiedPod) {
    			logger.V(5).Info("a scheduled pod was updated to match the target pod's affinity, and the pod may be schedulable now",
    				"pod", klog.KObj(pod), "modifiedPod", klog.KObj(modifiedPod))
    			return framework.Queue, nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/interpodaffinity/filtering.go

    // for each affinity term if "targetPod" matches ALL terms.
    func (m topologyToMatchedTermCount) updateWithAffinityTerms(
    	terms []framework.AffinityTerm, pod *v1.Pod, node *v1.Node, value int64) {
    	if podMatchesAllAffinityTerms(terms, pod) {
    		for _, t := range terms {
    			m.update(node, t.TopologyKey, value)
    		}
    	}
    }
    
    // updates the topologyToMatchedTermCount map with the specified value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 14.6K bytes
    - Viewed (0)
Back to top