@@ -439,15 +439,15 @@ func Test_initPodSpecPatch_modelcar_input_artifact(t *testing.T) {
439
439
assert .Len (t , podSpec .Containers , 2 )
440
440
assert .Len (t , podSpec .Containers [0 ].VolumeMounts , 1 )
441
441
assert .Equal (t , podSpec .Containers [0 ].VolumeMounts [0 ].Name , "oci-0" )
442
- assert .Equal (t , podSpec .Containers [0 ].VolumeMounts [0 ].MountPath , "/oci/registry.domain.local \\ /my -model:latest" )
443
- assert .Equal (t , podSpec .Containers [0 ].VolumeMounts [0 ].SubPath , "registry.domain.local \\ /my -model:latest" )
442
+ assert .Equal (t , podSpec .Containers [0 ].VolumeMounts [0 ].MountPath , "/oci/registry.domain.local_my -model:latest" )
443
+ assert .Equal (t , podSpec .Containers [0 ].VolumeMounts [0 ].SubPath , "registry.domain.local_my -model:latest" )
444
444
445
445
assert .Equal (t , podSpec .Containers [1 ].Name , "oci-0" )
446
446
assert .Equal (t , podSpec .Containers [1 ].Image , "registry.domain.local/my-model:latest" )
447
447
assert .Len (t , podSpec .Containers [1 ].VolumeMounts , 1 )
448
448
assert .Equal (t , podSpec .Containers [1 ].VolumeMounts [0 ].Name , "oci-0" )
449
- assert .Equal (t , podSpec .Containers [1 ].VolumeMounts [0 ].MountPath , "/oci/registry.domain.local \\ /my -model:latest" )
450
- assert .Equal (t , podSpec .Containers [1 ].VolumeMounts [0 ].SubPath , "registry.domain.local \\ /my -model:latest" )
449
+ assert .Equal (t , podSpec .Containers [1 ].VolumeMounts [0 ].MountPath , "/oci/registry.domain.local_my -model:latest" )
450
+ assert .Equal (t , podSpec .Containers [1 ].VolumeMounts [0 ].SubPath , "registry.domain.local_my -model:latest" )
451
451
}
452
452
453
453
func Test_makeVolumeMountPatch (t * testing.T ) {
@@ -925,7 +925,8 @@ func Test_extendPodSpecPatch_ConfigMap(t *testing.T) {
925
925
VolumeSource : k8score.VolumeSource {
926
926
ConfigMap : & k8score.ConfigMapVolumeSource {
927
927
LocalObjectReference : k8score.LocalObjectReference {Name : "cm1" },
928
- Optional : & []bool {false }[0 ]},
928
+ Optional : & []bool {false }[0 ],
929
+ },
929
930
},
930
931
},
931
932
},
@@ -967,7 +968,8 @@ func Test_extendPodSpecPatch_ConfigMap(t *testing.T) {
967
968
VolumeSource : k8score.VolumeSource {
968
969
ConfigMap : & k8score.ConfigMapVolumeSource {
969
970
LocalObjectReference : k8score.LocalObjectReference {Name : "cm1" },
970
- Optional : & []bool {false }[0 ]},
971
+ Optional : & []bool {false }[0 ],
972
+ },
971
973
},
972
974
},
973
975
},
@@ -1009,7 +1011,8 @@ func Test_extendPodSpecPatch_ConfigMap(t *testing.T) {
1009
1011
VolumeSource : k8score.VolumeSource {
1010
1012
ConfigMap : & k8score.ConfigMapVolumeSource {
1011
1013
LocalObjectReference : k8score.LocalObjectReference {Name : "cm1" },
1012
- Optional : & []bool {true }[0 ]},
1014
+ Optional : & []bool {true }[0 ],
1015
+ },
1013
1016
},
1014
1017
},
1015
1018
},
0 commit comments