Release pod name when pod is removed
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
78aae688e2
commit
3245810bd6
1 changed files with 2 additions and 0 deletions
|
@ -300,6 +300,8 @@ func (s *Server) RemovePodSandbox(ctx context.Context, req *pb.RemovePodSandboxR
|
||||||
return nil, fmt.Errorf("failed to remove sandbox %s directory: %v", *sbID, err)
|
return nil, fmt.Errorf("failed to remove sandbox %s directory: %v", *sbID, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.releasePodName(sb.name)
|
||||||
|
|
||||||
return &pb.RemovePodSandboxResponse{}, nil
|
return &pb.RemovePodSandboxResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue