We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f5135 commit 98306a1Copy full SHA for 98306a1
internal/webhook/v1/pod_webhook.go
@@ -333,8 +333,8 @@ func (m *TensorFusionPodMutator) patchTFClient(
333
}
334
// Limit is set to actual index value (1-512) for Device Plugin to match Pod
335
// ResourceFit of dummy device already ignored in TF scheduler
336
- container.Resources.Limits[constants.PodIndexAnnotation] = resource.MustParse(strconv.Itoa(index))
337
- container.Resources.Requests[constants.PodIndexAnnotation] = resource.MustParse("0")
+ indexQuantity := resource.MustParse(strconv.Itoa(index))
+ container.Resources.Limits[constants.PodIndexAnnotation] = indexQuantity
338
339
if !isLocalGPU {
340
addConnectionForRemoteFixedReplicaVirtualGPU(pod, container, clientConfig)
0 commit comments