Skip to content

Commit 1849fb9

Browse files
committed
fix: creating multiple pods at the same time will be assigned to the same NPU.
1 parent 5a6b165 commit 1849fb9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

internal/server/server.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ import (
2020
"context"
2121
"flag"
2222
"fmt"
23-
"math"
2423
"net"
2524
"os"
2625
"path"
27-
"strconv"
2826
"strings"
2927
"time"
3028

@@ -355,7 +353,6 @@ func (ps *PluginServer) Allocate(ctx context.Context, reqs *v1beta1.AllocateRequ
355353
if success {
356354
annotations := make(map[string]string)
357355
annotations[util.DeviceBindPhase] = util.DeviceBindSuccess
358-
annotations[util.AssignedTimeAnnotations] = strconv.FormatUint(math.MaxUint64, 10)
359356
err := util.PatchPodAnnotations(pod, annotations)
360357
if err != nil {
361358
klog.Errorf("patch pod %s annotations error: %v", pod.Name, err)

0 commit comments

Comments
 (0)