mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
TODO has already been implemented
This commit is contained in:
parent
7726877a1e
commit
21702e3c39
@ -256,7 +256,6 @@ func (m *ManagerImpl) Devices() map[string][]pluginapi.Device {
|
|||||||
func (m *ManagerImpl) Allocate(node *schedulercache.NodeInfo, attrs *lifecycle.PodAdmitAttributes) error {
|
func (m *ManagerImpl) Allocate(node *schedulercache.NodeInfo, attrs *lifecycle.PodAdmitAttributes) error {
|
||||||
pod := attrs.Pod
|
pod := attrs.Pod
|
||||||
devicesToReuse := make(map[string]sets.String)
|
devicesToReuse := make(map[string]sets.String)
|
||||||
// TODO: Reuse devices between init containers and regular containers.
|
|
||||||
for _, container := range pod.Spec.InitContainers {
|
for _, container := range pod.Spec.InitContainers {
|
||||||
if err := m.allocateContainerResources(pod, &container, devicesToReuse); err != nil {
|
if err := m.allocateContainerResources(pod, &container, devicesToReuse); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user