mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Set controller ingress state only if ingress
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
d1513159d0
commit
26ae9499f0
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue