-
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.
daemon: Do not require native routing CIDR if ipmasq-agent is enabled
Cilium's built-in [ipmasq-agent replacement](https://docs.cilium.io/en/v1.14/network/concepts/masquerading/#ebpf-based) acts as a replacement for the native routing CIDR. Therefore, it does not make sense to require the native routing CIDR if the ipmasq-agent is enabled, since the two flags are basically mutually exclusive. The previous commit already prepared the implementation to not set the IPV4_SNAT_EXCLUSION_DST_CIDR in the datapath if the native routing CIDR is absent. In addition, this commit also slightly restructures and aligns the if condition with the error message, to make it a bit easier to read. Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
- Loading branch information
1 parent
8abc0c2
commit 98964b1
Showing
2 changed files
with
63 additions
and
17 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