forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon / cni: move to Cell, watch for changes
Refactor the CNI controller to use the Hive / Cell mechanism. This means simplifying the underlying controller and making it run immediately, rather than waiting for the Daemon to start. This mirrors the existing behavior of the postStart hook, which will be going away. The controller now also watches the CNI configuration directory and reconciles whenever a file has changed; this is needed because some chaining modes (e.g. AWS) need to wait until the aws-cni plugin installs its own CNI configuration file. We then want to install our chained plugin ASAP. Previously, we would just loop until the configuration was created, but that is fragile. Rather, set up an fsnotify and watch for changes that way. This has the advantage of re-generating the chained configuration should the underlying network change. Signed-off-by: Casey Callendrello <cdc@isovalent.com>
- Loading branch information
Showing
17 changed files
with
573 additions
and
459 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.