lyft / cni-ipvlan-vpc-k8s

AWS VPC Kubernetes CNI driver using IPvlan
Apache License 2.0
360 stars 58 forks source link

Listing VPC CIDRs to create routes in pods does not filter on association state #49

Closed lbernail closed 6 years ago

lbernail commented 6 years ago

DescribeVPCCIDRs adds all CIDR associated with the VPC regardless of association state. If this state is different from associated we should not add this CIDR range to the list

When removing a CIDR range from a VPC, the range remains disassociated for a long time (1+ hour) before being removed. We should only add ranges with status associated.

Possible association states:

I'm not sure what we should do with the associating state because it may fail