Properly cleanup ingress sandbox in controller
When ingress sandbox is removed, properly cleanup the reference in the controller. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
562fd97f8a
commit
8d1adbd665
|
@ -245,6 +245,9 @@ func (sb *sandbox) delete(force bool) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Lock()
|
c.Lock()
|
||||||
|
if sb.ingress {
|
||||||
|
c.ingressSandbox = nil
|
||||||
|
}
|
||||||
delete(c.sandboxes, sb.ID())
|
delete(c.sandboxes, sb.ID())
|
||||||
c.Unlock()
|
c.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue