Skip to content

Commit 2d9e0b2

Browse files
israel-hdezpmtk
andauthored
Force symlink for ModelCar (kserve#4274) (#540)
Signed-off-by: Patryk Matuszak <[email protected]> Co-authored-by: Patryk Matuszak <[email protected]>
1 parent b2b599f commit 2d9e0b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/webhook/admission/pod/storage_initializer_injector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ func (mi *StorageInitializerInjector) createModelContainer(image string, modelPa
688688
"sh",
689689
"-c",
690690
// $$$$ gets escaped by YAML to $$, which is the current PID
691-
fmt.Sprintf("ln -s /proc/$$$$/root/models %s && sleep infinity", modelPath),
691+
fmt.Sprintf("ln -sf /proc/$$$$/root/models %s && sleep infinity", modelPath),
692692
},
693693
Resources: v1.ResourceRequirements{
694694
Limits: map[v1.ResourceName]resource.Quantity{

0 commit comments

Comments
 (0)