Skip to content

Commit 98306a1

Browse files
authored
fix: remove requests for tensor-fusion.ai/index extended resource (#455)
1 parent c0f5135 commit 98306a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/webhook/v1/pod_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ func (m *TensorFusionPodMutator) patchTFClient(
333333
}
334334
// Limit is set to actual index value (1-512) for Device Plugin to match Pod
335335
// 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")
336+
indexQuantity := resource.MustParse(strconv.Itoa(index))
337+
container.Resources.Limits[constants.PodIndexAnnotation] = indexQuantity
338338

339339
if !isLocalGPU {
340340
addConnectionForRemoteFixedReplicaVirtualGPU(pod, container, clientConfig)

0 commit comments

Comments
 (0)