Merge pull request #1224 from mrjana/lb

Set controller ingress state only if ingress
This commit is contained in:
Jana Radhakrishnan 2016-06-07 20:01:35 -07:00
commit 912e619a83

View file

@ -784,7 +784,9 @@ func (c *controller) NewSandbox(containerID string, options ...SandboxOption) (s
return nil, fmt.Errorf("ingress sandbox already present")
}
c.ingressSandbox = sb
if sb.ingress {
c.ingressSandbox = sb
}
c.Unlock()
defer func() {
if err != nil {