Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for PodsWithRequiredAntiAffinity (0.62 sec)

  1. pkg/scheduler/framework/types.go

    			}
    		}
    	}
    	if len(n.PodsWithAffinity) > 0 {
    		clone.PodsWithAffinity = append([]*PodInfo(nil), n.PodsWithAffinity...)
    	}
    	if len(n.PodsWithRequiredAntiAffinity) > 0 {
    		clone.PodsWithRequiredAntiAffinity = append([]*PodInfo(nil), n.PodsWithRequiredAntiAffinity...)
    	}
    	if len(n.ImageStates) > 0 {
    		state := make(map[string]*ImageStateSummary, len(n.ImageStates))
    		for imageName, imageState := range n.ImageStates {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/cache/cache.go

    			// way around.
    			if (len(existing.PodsWithAffinity) > 0) != (len(clone.PodsWithAffinity) > 0) {
    				updateNodesHavePodsWithAffinity = true
    			}
    			if (len(existing.PodsWithRequiredAntiAffinity) > 0) != (len(clone.PodsWithRequiredAntiAffinity) > 0) {
    				updateNodesHavePodsWithRequiredAntiAffinity = true
    			}
    			if !updateUsedPVCSet {
    				if len(existing.PVCRefCounts) != len(clone.PVCRefCounts) {
    					updateUsedPVCSet = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 09:56:48 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/cache/snapshot.go

    	for _, v := range nodeInfoMap {
    		nodeInfoList = append(nodeInfoList, v)
    		if len(v.PodsWithAffinity) > 0 {
    			havePodsWithAffinityNodeInfoList = append(havePodsWithAffinityNodeInfoList, v)
    		}
    		if len(v.PodsWithRequiredAntiAffinity) > 0 {
    			havePodsWithRequiredAntiAffinityNodeInfoList = append(havePodsWithRequiredAntiAffinityNodeInfoList, v)
    		}
    	}
    
    	s := NewEmptySnapshot()
    	s.nodeInfoMap = nodeInfoMap
    	s.nodeInfoList = nodeInfoList
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/interpodaffinity/filtering.go

    	index := int32(-1)
    	processNode := func(i int) {
    		nodeInfo := nodes[i]
    		node := nodeInfo.Node()
    
    		topoMap := make(topologyToMatchedTermCount)
    		for _, existingPod := range nodeInfo.PodsWithRequiredAntiAffinity {
    			topoMap.updateWithAntiAffinityTerms(existingPod.RequiredAntiAffinityTerms, pod, nsLabels, node, 1)
    		}
    		if len(topoMap) != 0 {
    			topoMaps[atomic.AddInt32(&index, 1)] = topoMap
    		}
    	}
    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