-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eni: Fix unexpected IP release when agent restarts
When cilium agent in eni mode restarts, ciliumnode custom resource is cleared and refilled by several updates. Specifically, Status.IPAM.Used map which holds all used IPs is first updated to an empty map before endpoints finish restoration. This becomes critical if `--aws-release-excess-ips` is enabled since cilium operator treats empty IPAM.Used map as no address used hence releases addresses arbitraryly, causing restored endpoints disconnected. This patch fixes this by combining per endpoint update requests into one update request after all endpoint restoration finishes so that Status.IPAM.Used keeps the desired state during agent restart. Signed-off-by: Jaff Cheng <jaff.cheng.sh@gmail.com>
- Loading branch information
Showing
8 changed files
with
180 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.