mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Merge pull request #12419 from hashicorp/exec-cleanup
raw_exec: make raw exec driver work with cgroups v2
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
uuidparse "github.com/hashicorp/go-uuid"
|
||||
"github.com/hashicorp/nomad/client"
|
||||
clientconfig "github.com/hashicorp/nomad/client/config"
|
||||
"github.com/hashicorp/nomad/client/lib/cgutil"
|
||||
"github.com/hashicorp/nomad/client/state"
|
||||
"github.com/hashicorp/nomad/command/agent/consul"
|
||||
"github.com/hashicorp/nomad/command/agent/event"
|
||||
@@ -694,7 +695,7 @@ func convertClientConfig(agentConfig *Config) (*clientconfig.Config, error) {
|
||||
}
|
||||
conf.BindWildcardDefaultHostNetwork = agentConfig.Client.BindWildcardDefaultHostNetwork
|
||||
|
||||
conf.CgroupParent = agentConfig.Client.CgroupParent
|
||||
conf.CgroupParent = cgutil.GetCgroupParent(agentConfig.Client.CgroupParent)
|
||||
if agentConfig.Client.ReserveableCores != "" {
|
||||
cores, err := cpuset.Parse(agentConfig.Client.ReserveableCores)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user