Add API to release Pod name when not required

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-09-26 15:35:34 -07:00
parent e1b8802848
commit 78aae688e2

View file

@ -102,6 +102,10 @@ func (s *Server) reservePodName(id, name string) (string, error) {
return name, nil return name, nil
} }
func (s *Server) releasePodName(name string) {
s.podNameIndex.Release(name)
}
// New creates a new Server with options provided // New creates a new Server with options provided
func New(runtimePath, root, sandboxDir, containerDir string) (*Server, error) { func New(runtimePath, root, sandboxDir, containerDir string) (*Server, error) {
// TODO: This will go away later when we have wrapper process or systemd acting as // TODO: This will go away later when we have wrapper process or systemd acting as