This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
injector: make iptable rules idempotent (#4373)
Makes the iptable rules idempotent by using `iptables-restore --noflush`. With this change, the init-container can be executed multiple times without any side effects. The `--noflush` option ensures the exising rules do not get flushed during `iptables-restore`, which would otherwise compromise the security. Also simplifies the init container test to avoid redundancy. Resolves #4307 Signed-off-by: Shashank Ram <[email protected]>
- Loading branch information
1 parent
332b52b
commit fe85f60
Showing
4 changed files
with
102 additions
and
213 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
Oops, something went wrong.