mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Part 1 of pr #33763: cleanup CheckServiceAffinity in preparation for
predicate injection support, Update metadata struct
This commit is contained in:
@@ -28,7 +28,8 @@ type priorityMetadata struct {
|
||||
affinity *api.Affinity
|
||||
}
|
||||
|
||||
func PriorityMetadata(pod *api.Pod) interface{} {
|
||||
// PriorityMetadata is a MetadataProducer. Node info can be nil.
|
||||
func PriorityMetadata(pod *api.Pod, nodeNameToInfo map[string]*schedulercache.NodeInfo) interface{} {
|
||||
// If we cannot compute metadata, just return nil
|
||||
if pod == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user