Keep host order as defined in TOML file

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2021-04-01 09:29:16 -07:00
parent 6866b36ab6
commit 5ada2f74a7
3 changed files with 48 additions and 15 deletions

View File

@@ -48,7 +48,7 @@ type Runtime struct {
// This only works for runtime type "io.containerd.runtime.v1.linux".
Root string `toml:"runtime_root" json:"runtimeRoot"`
// Options are config options for the runtime. If options is loaded
// from toml config, it will be toml.Primitive.
// from toml config, it will be toml.Tree.
Options *toml.Tree `toml:"options" json:"options"`
// PrivilegedWithoutHostDevices overloads the default behaviour for adding host devices to the
// runtime spec when the container is privileged. Defaults to false.