From 3245810bd62b7a9cb03b63e921ca9e605c559481 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 26 Sep 2016 15:42:08 -0700 Subject: [PATCH] Release pod name when pod is removed Signed-off-by: Mrunal Patel --- server/sandbox.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/sandbox.go b/server/sandbox.go index 42dbdb46..2c0d3de0 100644 --- a/server/sandbox.go +++ b/server/sandbox.go @@ -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) } + s.releasePodName(sb.name) + return &pb.RemovePodSandboxResponse{}, nil }