From 78aae688e2932f0cfc2a23e28ad30b58c6b8577f Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 26 Sep 2016 15:35:34 -0700 Subject: [PATCH] Add API to release Pod name when not required Signed-off-by: Mrunal Patel --- server/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/server.go b/server/server.go index 96b7dbed..0e7e9f09 100644 --- a/server/server.go +++ b/server/server.go @@ -102,6 +102,10 @@ func (s *Server) reservePodName(id, name string) (string, error) { return name, nil } +func (s *Server) releasePodName(name string) { + s.podNameIndex.Release(name) +} + // New creates a new Server with options provided func New(runtimePath, root, sandboxDir, containerDir string) (*Server, error) { // TODO: This will go away later when we have wrapper process or systemd acting as