Also set default_runtime.options.BinaryName

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-05-27 16:20:06 +02:00
parent dad3e855b5
commit 530d66b5c7
2 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,7 @@ func (config *configV1) Update(o *options) error {
log.Warnf("Setting default_runtime is deprecated") log.Warnf("Setting default_runtime is deprecated")
defaultRuntimePath := append(config.containerdPath(), "default_runtime") defaultRuntimePath := append(config.containerdPath(), "default_runtime")
config.initRuntime(defaultRuntimePath, o.runtimeType, "Runtime", runtimeBinary) config.initRuntime(defaultRuntimePath, o.runtimeType, "Runtime", runtimeBinary)
config.initRuntime(defaultRuntimePath, o.runtimeType, "BinaryName", runtimeBinary)
} }
return nil return nil
} }

View File

@ -336,6 +336,7 @@ func defaultRuntimeV1(binary string) map[string]interface{} {
"runtime_engine": "", "runtime_engine": "",
"privileged_without_host_devices": false, "privileged_without_host_devices": false,
"options": map[string]interface{}{ "options": map[string]interface{}{
"BinaryName": binary,
"Runtime": binary, "Runtime": binary,
}, },
} }