-
Notifications
You must be signed in to change notification settings - Fork 374
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
Set default feature gates of unsupported features to false on Windows #3527
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3527 +/- ##
==========================================
- Coverage 64.17% 60.39% -3.78%
==========================================
Files 278 278
Lines 27825 38376 +10551
==========================================
+ Hits 17856 23177 +5321
- Misses 8048 13183 +5135
- Partials 1921 2016 +95
Flags with carried forward coverage won't be shown. Click here to find out more.
|
46f5101
to
57e57ba
Compare
A feature might be enabled by default on Linux, but is not supported on Windows, so set the default feature gates of such features to false on Windows. Signed-off-by: Jianjun Shen <[email protected]>
57e57ba
to
58c77b3
Compare
Maybe in NetworkPolicyOnly mode, feature gate Egress should be also false anyway. |
Feature gate should be for code isolation, but not for configuring a feature (e.g. when enabling the feature has overhead or leads to unexpected behavior in some configuration). So, we should not auto-disable feature gates based on configuration in my mind. If we believe enabling Egress with NetworkPolicyOnly mode will result in some unexpected issues, we should do internal checks to avoid such issues. @tnqn |
I wonder if we should still use a separate variable to determine whether we should activate a feature. A feature will eventually graduate to GA and be locked to true (or even removed from feature gates?) but it's still possible it shouldn't be activated in some scenario, like Egress in networkPolicyOnly mode. |
I agree we should check internally for features that can lead to cost or unexpected behavior once enabled. On the other hand, I feel this PR has nothing wrong to disable the feature gate on Windows, as it still looks confusing an unsupported feature is enabled (e.g. from antctl output). What you think? @tnqn |
Make sense to me. |
/test-all |
/test-windows-e2e |
A feature might be enabled by default on Linux, but is not supported on
Windows, so set the default feature gates of such features to false on
Windows.
Signed-off-by: Jianjun Shen [email protected]