Sfoglia il codice sorgente

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>
Jana Radhakrishnan 9 anni fa
parent
commit
8d1adbd665
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      libnetwork/sandbox.go

+ 3 - 0
libnetwork/sandbox.go

@@ -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()