mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Also set Runtime file v1 containerd runtime config
This ensures that older versions of containerd that may be expecting this over options.BinaryName should continue to work. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
4cd719692e
commit
15cbd54d1c
@ -48,6 +48,9 @@ func (config *config) update(runtimeClass string, runtimeType string, runtimeBin
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.initRuntime(runtimeClassPath, runtimeType, "BinaryName", runtimeBinary)
|
config.initRuntime(runtimeClassPath, runtimeType, "BinaryName", runtimeBinary)
|
||||||
|
if config.version == 1 {
|
||||||
|
config.initRuntime(runtimeClassPath, runtimeType, "Runtime", runtimeBinary)
|
||||||
|
}
|
||||||
|
|
||||||
if setAsDefault {
|
if setAsDefault {
|
||||||
defaultRuntimeNamePath := config.defaultRuntimeNamePath()
|
defaultRuntimeNamePath := config.defaultRuntimeNamePath()
|
||||||
|
@ -349,6 +349,7 @@ func runtimeMapV1(binary string) map[string]interface{} {
|
|||||||
"privileged_without_host_devices": false,
|
"privileged_without_host_devices": false,
|
||||||
"options": map[string]interface{}{
|
"options": map[string]interface{}{
|
||||||
"BinaryName": binary,
|
"BinaryName": binary,
|
||||||
|
"Runtime": binary,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -376,6 +377,7 @@ func runcRuntimeConfigMapV1(binary string) map[string]interface{} {
|
|||||||
"options": map[string]interface{}{
|
"options": map[string]interface{}{
|
||||||
"runc-option": "value",
|
"runc-option": "value",
|
||||||
"BinaryName": binary,
|
"BinaryName": binary,
|
||||||
|
"Runtime": binary,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user