Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for filterSingleNumaHints (0.15 sec)

  1. pkg/kubelet/cm/topologymanager/policy_single_numa_node.go

    	return PolicySingleNumaNode
    }
    
    func (p *singleNumaNodePolicy) canAdmitPodResult(hint *TopologyHint) bool {
    	return hint.Preferred
    }
    
    // Return hints that have valid bitmasks with exactly one bit set.
    func filterSingleNumaHints(allResourcesHints [][]TopologyHint) [][]TopologyHint {
    	var filteredResourcesHints [][]TopologyHint
    	for _, oneResourceHints := range allResourcesHints {
    		var filtered []TopologyHint
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 16:52:08 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/topologymanager/policy_single_numa_node_test.go

    					{NUMANodeAffinity: NewTestBitMask(1), Preferred: true},
    				},
    				[]TopologyHint(nil),
    				[]TopologyHint(nil),
    			},
    		},
    	}
    
    	for _, tc := range tcases {
    		actual := filterSingleNumaHints(tc.allResources)
    		if !reflect.DeepEqual(tc.expectedResources, actual) {
    			t.Errorf("Test Case: %s", tc.name)
    			t.Errorf("Expected result to be %v, got %v", tc.expectedResources, actual)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:25 UTC 2022
    - 4.6K bytes
    - Viewed (0)
Back to top