Add API to release Pod name when not required
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
e1b8802848
commit
78aae688e2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue