-
Notifications
You must be signed in to change notification settings - Fork 367
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
Validate serviceCIDR configuration only if AntreaProxy is disabled #2936
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2936 +/- ##
==========================================
+ Coverage 59.84% 61.06% +1.22%
==========================================
Files 289 289
Lines 24551 24550 -1
==========================================
+ Hits 14693 14992 +299
+ Misses 8250 7932 -318
- Partials 1608 1626 +18
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/test-all |
/test-windows-all |
Since @lzhecheng has another PR(#2939) to optimize the windows routeClient, and I want to rebase this PR on his then I could remove |
@@ -240,8 +230,19 @@ func (o *Options) setDefaults() { | |||
} | |||
|
|||
func (o *Options) validateAntreaProxyConfig() error { | |||
if !features.DefaultFeatureGate.Enabled(features.AntreaProxy) && len(o.config.AntreaProxy.SkipServices) > 0 { | |||
klog.InfoS("skipServices will be ignored because AntreaProxy is disabled", "skipServices", o.config.AntreaProxy.SkipServices) | |||
if !features.DefaultFeatureGate.Enabled(features.AntreaProxy) { |
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.
It is a little strange to validate non-AntreaProxy config in validateAntreaProxyConfig(). Probably not a big deal though.
d42bd33
to
a6d066e
Compare
/test-all |
/test-integration |
/test-windows-conformance |
2 similar comments
/test-windows-conformance |
/test-windows-conformance |
Move the validation for serviceCIDR under the condition that AntreaProxy is disabled. So that the user could not ignore the item when using AntreaProxy instead of kube-proxy. Signed-off-by: wenyingd <wenyingd@vmware.com>
/test-all Rerun tests after rebasing the code |
/test-all |
/test-integration |
/test-integration |
/test-integration |
/test-integration |
…antrea-io#2936)" This reverts commit 6097f37.
Move the validation for serviceCIDR under the condition that AntreaProxy
is disabled. So that the user could not ignore the item when using
AntreaProxy instead of kube-proxy.
Fixes #2935
Signed-off-by: wenyingd wenyingd@vmware.com