Skip to content

Commit 9872e5e

Browse files
authored
fix: add missing lib mount for client (#265)
1 parent efccf53 commit 9872e5e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

internal/utils/compose.go

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,17 @@ func AddTFDefaultClientConfBeforePatch(
161161
Value: constants.TFLibsVolumeMountPath,
162162
})
163163

164-
pod.Spec.Containers[injectContainerIndex].VolumeMounts = append(pod.Spec.Containers[injectContainerIndex].VolumeMounts, v1.VolumeMount{
165-
Name: constants.TFLibsVolumeName,
166-
MountPath: constants.LdPreloadFile,
167-
SubPath: constants.LdPreloadFileName,
168-
ReadOnly: true,
169-
})
164+
pod.Spec.Containers[injectContainerIndex].VolumeMounts = append(
165+
pod.Spec.Containers[injectContainerIndex].VolumeMounts,
166+
v1.VolumeMount{
167+
Name: constants.TFLibsVolumeName,
168+
MountPath: constants.LdPreloadFile,
169+
SubPath: constants.LdPreloadFileName,
170+
ReadOnly: true,
171+
}, v1.VolumeMount{
172+
Name: constants.TFLibsVolumeName,
173+
MountPath: constants.TFLibsVolumeMountPath,
174+
})
170175
}
171176

172177
if tfInfo.Profile.IsLocalGPU {

0 commit comments

Comments
 (0)