@@ -43,7 +43,7 @@ func (m *ManagerImpl) GetTopologyHints(pod *v1.Pod, container *v1.Container) map
43
43
for resource , requested := range accumulatedResourceRequests {
44
44
// Only consider devices that actually contain topology information.
45
45
if aligned := m .deviceHasTopologyAlignment (resource ); ! aligned {
46
- klog .InfoS ("Resource does not have a topology preference" , "resource" , resource )
46
+ klog .InfoS ("Resource does not have a topology preference" , "resource" , resource , "pod" , klog . KObj ( pod ), "containerName" , container . Name , "request" , requested )
47
47
deviceHints [resource ] = nil
48
48
continue
49
49
}
@@ -67,7 +67,7 @@ func (m *ManagerImpl) GetTopologyHints(pod *v1.Pod, container *v1.Container) map
67
67
available := m .getAvailableDevices (resource )
68
68
reusable := m .devicesToReuse [string (pod .UID )][resource ]
69
69
if available .Union (reusable ).Len () < requested {
70
- klog .InfoS ("Unable to generate topology hints: requested number of devices unavailable" , "resource" , resource , "request" , requested , "available" , available .Union (reusable ).Len ())
70
+ klog .InfoS ("Unable to generate topology hints: requested number of devices unavailable" , "resource" , resource , "pod" , klog . KObj ( pod ), "containerName" , container . Name , " request" , requested , "available" , available .Union (reusable ).Len ())
71
71
deviceHints [resource ] = []topologymanager.TopologyHint {}
72
72
continue
73
73
}
@@ -94,7 +94,7 @@ func (m *ManagerImpl) GetPodTopologyHints(pod *v1.Pod) map[string][]topologymana
94
94
for resource , requested := range accumulatedResourceRequests {
95
95
// Only consider devices that actually contain topology information.
96
96
if aligned := m .deviceHasTopologyAlignment (resource ); ! aligned {
97
- klog .InfoS ("Resource does not have a topology preference" , "resource" , resource )
97
+ klog .InfoS ("Resource does not have a topology preference" , "resource" , resource , "pod" , klog . KObj ( pod ), "request" , requested )
98
98
deviceHints [resource ] = nil
99
99
continue
100
100
}
@@ -109,15 +109,15 @@ func (m *ManagerImpl) GetPodTopologyHints(pod *v1.Pod) map[string][]topologymana
109
109
deviceHints [resource ] = []topologymanager.TopologyHint {}
110
110
continue
111
111
}
112
- klog .InfoS ("Regenerating TopologyHints for resource already allocated to pod" , "resource" , resource , "pod" , klog .KObj (pod ))
112
+ klog .InfoS ("Regenerating TopologyHints for resource already allocated to pod" , "resource" , resource , "pod" , klog .KObj (pod ), "allocated" , allocated . Len () )
113
113
deviceHints [resource ] = m .generateDeviceTopologyHints (resource , allocated , sets.Set [string ]{}, requested )
114
114
continue
115
115
}
116
116
117
117
// Get the list of available devices, for which TopologyHints should be generated.
118
118
available := m .getAvailableDevices (resource )
119
119
if available .Len () < requested {
120
- klog .InfoS ("Unable to generate topology hints: requested number of devices unavailable" , "resource" , resource , "request" , requested , "available" , available .Len ())
120
+ klog .InfoS ("Unable to generate topology hints: requested number of devices unavailable" , "resource" , resource , "pod" , klog . KObj ( pod ), " request" , requested , "available" , available .Len ())
121
121
deviceHints [resource ] = []topologymanager.TopologyHint {}
122
122
continue
123
123
}
0 commit comments