mirror of https://github.com/kubernetes/kops.git
Fix NAT find based on #4572
This commit is contained in:
parent
7bd39bd9e7
commit
4bd5797bb1
|
|
@ -110,10 +110,13 @@ func (e *NatGateway) Find(c *fi.Context) (*NatGateway, error) {
|
||||||
return nil, fmt.Errorf("found multiple elastic IPs attached to NatGateway %q", aws.StringValue(ngw.NatGatewayId))
|
return nil, fmt.Errorf("found multiple elastic IPs attached to NatGateway %q", aws.StringValue(ngw.NatGatewayId))
|
||||||
}
|
}
|
||||||
|
|
||||||
// NATGateways don't have a Name (no tags), so we set the name to avoid spurious changes
|
// NATGateways now have names and tags so lets pull from there instead.
|
||||||
actual.Name = e.Name
|
actual.Name = findNameTag(ngw.Tags)
|
||||||
|
actual.Tags = intersectTags(ngw.Tags, e.Tags)
|
||||||
actual.Lifecycle = e.Lifecycle
|
actual.Lifecycle = e.Lifecycle
|
||||||
|
|
||||||
|
actual.Shared = e.Shared
|
||||||
|
|
||||||
actual.AssociatedRouteTable = e.AssociatedRouteTable
|
actual.AssociatedRouteTable = e.AssociatedRouteTable
|
||||||
|
|
||||||
e.ID = actual.ID
|
e.ID = actual.ID
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue