Merge pull request #1224 from mrjana/lb
Set controller ingress state only if ingress
This commit is contained in:
commit
912e619a83
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