Skip to content

Commit 9a8bf13

Browse files
committed
feature: add field LinuxContainerResources.Unified on cri
Signed-off-by: Zhiyu Li <[email protected]>
1 parent ff2e58d commit 9a8bf13

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pkg/cri/opts/spec_linux.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,15 @@ func WithResources(resources *runtime.LinuxContainerResources, tolerateMissingHu
446446
logrus.Warn("hugetlb cgroup controller is absent. skipping huge pages limits")
447447
}
448448
}
449+
450+
if unified := resources.GetUnified(); unified != nil {
451+
if s.Linux.Resources.Unified == nil {
452+
s.Linux.Resources.Unified = make(map[string]string)
453+
}
454+
for k, v := range unified {
455+
s.Linux.Resources.Unified[k] = v
456+
}
457+
}
449458
return nil
450459
}
451460
}

0 commit comments

Comments
 (0)