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
option: Rename egress gateway flag to enable-ipv4-egress-gateway
#17695
option: Rename egress gateway flag to enable-ipv4-egress-gateway
#17695
Conversation
f0a2a7e
to
25d614c
Compare
25d614c
to
1daf4e2
Compare
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.
Even though this is a beta feature I think we should keep the old --enable-egress-gateway
around and mark it for 1.12 deprecation in daemon/cmd/daemon_main.go
:
flags.MarkDeprecated(option.EnableEgressGateway, "This flag is no longer available and will be removed in v1.12")
just to avoid leaving users that upgrade to 1.11 with a broken daemon config
What's the point of having beta if we're going to take as many precautions when making changes as with a stable feature? For a user to break their setup on upgrade, they would have to (1) not read the upgrade guide and (2) not test a basic upgrade first (we'll error on unknown flag), all that while knowing they are using a beta feature. |
The new name should clarify that this flag only enables an IPv4 egress gateway feature; IPv6 is not supported yet. Once IPv6 is supported, users may not want to enable it even on dual-stack clusters because SNATing is generally less frequent in IPv6. To prepare for this future addition of enable-ipv6-egress-gateway, it's easier to rename now while the feature is still in beta. Signed-off-by: Paul Chaignon <paul@cilium.io>
1daf4e2
to
f50cc08
Compare
The new name should clarify that this flag only enables an IPv4 egress gateway feature; IPv6 is not supported yet. Once IPv6 is supported, users may not want to enable it even on dual-stack clusters because SNATing is generally less frequent in IPv6. To prepare for this future addition of
enable-ipv6-egress-gateway
, it's easier to rename now while the feature is still in beta.