-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force to invoke all CNI plugin's delete at pods' tearing down
In case of multiple interfaces in pod, when the pod is deleted, forEachnetwork() is called with multiple network attachments. If forEachnetwork() causes the error at the middle of processing networks, then forEachnetwork() just returns and following network is not processed. From CNI runtime point of view, all CNI plugin should be invoked to delete interfaces. This change introduce 'force' option in forEachnetwork() and try to continue to process (i.e. delete network) even though forEachnetwork() causes the error.
- Loading branch information
Showing
1 changed file
with
20 additions
and
5 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