-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tunnel mode config and egress gateway config params #14723
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MasterZ40 , thanks for the PR.
The code change itself looks mostly straightforward, but I don't understand why. Would you mind providing a brief motivation in the commit message / PR description?
Please also review the rest of the PR description, everything below "Please ensure your pull request adheres to the following guidelines" is for you to complete or remove if it makes no sense. In particular the release note needs to be either set, or just removed (it's fine to remove in this case since the PR title describes the changes sufficiently).
One more specific change request below.
56bf38a
to
58765c8
Compare
4603730
to
f4ecd64
Compare
Do we need this commit: f4ecd64 ? |
It's needed for the egress gateway, no? Might as well include it now. |
Yes. I'd like to hold this one for now for this refactor. |
f4ecd64
to
ef96a06
Compare
ef96a06
to
7656021
Compare
Per further discussion with @anfernee, we decided to add back in the "config for egress gateway" commits with clearer descriptions of the options and their relationships. |
@MasterZ40 will you update the PR description specifically to remove the "fixes" and release note sections since they don't make sense? The release note piece in particular will break release scripting if you do not either update or remove it. |
Updated PR description. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes themselves look fine to me. You'll need to take into account MTU for mixed mode as well, otherwise endpoints may end up transmitting packets that cannot fit in the tunnel (I believe this is currently switching on tunnel mode enablement).
Then there's just the question of whether to merge PRs that contain partially-finished features. There has been some ongoing debate about this. I think previously the PR was just refactoring so it's clear we would just merge it, but with the latest changes to also start including the beginnings of the feature for #13575, it's less clear.
EDIT: I guess on the latter aspect, the ship has already departed. So I think the remaining item here is just the other codeowners.
Commit acd9408776448f309f68cb27f6cba4c7c5032123 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
acd9408
to
7656021
Compare
This change adds a tunnel mode arg to the init script of cilium devices so that 'mode' and 'tunnel mode' is represented in seperate params. The functioning should remain the same. This change is part of the ground work for the egress NAT feature, which requires this tunnel config information Ref: cilium#13575 Signed-off-by: Bolun Zhao <blzhao@google.com>
Adds "enable-egress-gateway" to the config, with defualt value to be false. Signed-off-by: Bolun Zhao <blzhao@google.com>
Sets the tunnel option when egress gateway is configured whilst direct routing mode. Under this circumstance, the tunnel will be used to redirect egress traffic to the gateway and it defaults to vxlan. Signed-off-by: Bolun Zhao <blzhao@google.com>
7656021
to
4e94bc9
Compare
test-me-please |
ready to merge this one? |
Yes, I think so. Tests are green and we have two reviews. Not all team reviews are covered, but I think the changes are trivial. |
This PR adds a tunnel mode arg to the init script of cilium devices so
that 'mode' and 'tunnel mode' is represented in separate params. It
also adds the config options for enabling egress gateway and makes
sure that tunnel is enabled when egress gateway is specified.
This change is part the egress NAT feature, Ref: #13575.
Signed-off-by: Bolun Zhao blzhao@google.com
Please ensure your pull request adheres to the following guidelines: