mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 07:22:20 +00:00
cgroups: manager's Set() now takes Resources as its parameter
Pior our bump to runc 1.0.1 the manager's Set() would take a Config as its parameter. Now it takes the Resources directly. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
c0f801c0c4
commit
116c29c897
@ -268,9 +268,7 @@ func (m *Manager) Apply() error {
|
|||||||
|
|
||||||
m.Lock()
|
m.Lock()
|
||||||
defer m.Unlock()
|
defer m.Unlock()
|
||||||
return m.mgr.Set(&configs.Config{
|
return m.mgr.Set(cgroups.Resources)
|
||||||
Cgroups: cgroups,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Manager) GetCgroups() (*configs.Cgroup, error) {
|
func (m *Manager) GetCgroups() (*configs.Cgroup, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user