Skip to content

Commit 4e5c332

Browse files
committed
Adding CgrouPath to CreateVMRequest
This commit allows for configuration of the cgroup path. If no value is provided the default value of /firecracker-containerd will be used making the full cgroup path of /sys/fs/cgroup/cpu/firecracker-containerd/<vmID> Signed-off-by: xibz <[email protected]>
1 parent 4d1bab3 commit 4e5c332

File tree

2 files changed

+61
-42
lines changed

2 files changed

+61
-42
lines changed

proto/firecracker.pb.go

Lines changed: 55 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/firecracker.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,11 @@ message JailerConfig {
102102
string Mems = 3;
103103
uint32 UID = 4;
104104
uint32 GID = 5;
105+
// CgroupPath is used to dictate where the cgroup should be located
106+
// relative to the cgroup directory which is
107+
// /sys/fs/cgroup/cpu/<CgroupPath>/<vmID>
108+
// if no value was provided, then /firecracker-containerd will be used as
109+
// the default value
110+
string CgroupPath = 6;
105111
}
106112

0 commit comments

Comments
 (0)