@@ -302,7 +302,9 @@ func TestTransformForRuntime(t *testing.T) {
302302 Env : []corev1.EnvVar {
303303 {Name : "RUNTIME" , Value : gpuv1 .Containerd .String ()},
304304 {Name : "CONTAINERD_RUNTIME_CLASS" , Value : DefaultRuntimeClass },
305+ {Name : "RUNTIME_CONFIG" , Value : filepath .Join (DefaultRuntimeConfigTargetDir , filepath .Base (DefaultContainerdConfigFile ))},
305306 {Name : "CONTAINERD_CONFIG" , Value : filepath .Join (DefaultRuntimeConfigTargetDir , filepath .Base (DefaultContainerdConfigFile ))},
307+ {Name : "RUNTIME_SOCKET" , Value : filepath .Join (DefaultRuntimeSocketTargetDir , filepath .Base (DefaultContainerdSocketFile ))},
306308 {Name : "CONTAINERD_SOCKET" , Value : filepath .Join (DefaultRuntimeSocketTargetDir , filepath .Base (DefaultContainerdSocketFile ))},
307309 },
308310 VolumeMounts : []corev1.VolumeMount {
@@ -321,6 +323,7 @@ func TestTransformForRuntime(t *testing.T) {
321323 Name : "test-ctr" ,
322324 Env : []corev1.EnvVar {
323325 {Name : "RUNTIME" , Value : gpuv1 .CRIO .String ()},
326+ {Name : "RUNTIME_CONFIG" , Value : filepath .Join (DefaultRuntimeConfigTargetDir , filepath .Base (DefaultCRIOConfigFile ))},
324327 {Name : "CRIO_CONFIG" , Value : filepath .Join (DefaultRuntimeConfigTargetDir , filepath .Base (DefaultCRIOConfigFile ))},
325328 },
326329 VolumeMounts : []corev1.VolumeMount {
0 commit comments