Merge pull request #389 from thaJeztah/17.12-backport-upgrade_fix

[17.12] Fixing ingress network when upgrading from 17.09 to 17.12.
This commit is contained in:
Andrew Hsu
2018-02-12 18:38:31 -08:00
committed by GitHub
@@ -146,6 +146,11 @@ func (e *executor) Configure(ctx context.Context, node *api.Node) error {
attachments[na.Network.ID] = na.Addresses[0]
}
if (ingressNA == nil) && (node.Attachment != nil) {
ingressNA = node.Attachment
attachments[ingressNA.Network.ID] = ingressNA.Addresses[0]
}
if ingressNA == nil {
e.backend.ReleaseIngress()
return e.backend.GetAttachmentStore().ResetAttachments(attachments)