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
Rename Agent config option multicluster.enable to enableGateway #4533
Conversation
return nil | ||
} | ||
|
||
if !features.DefaultFeatureGate.Enabled(features.Multicluster) { | ||
return fmt.Errorf("Multicluster can only be enabled when Multicluster feature gate is enabled") | ||
klog.InfoS("Multicluster feature gate is disabled. Multi-cluster options are ignored") |
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.
@GraysonWu : I found other features (e.g. NodePortLocal) ignore config options when the feature gate is not enabled, which makes sense to me, and so made this change.
Codecov Report
@@ Coverage Diff @@
## main #4533 +/- ##
==========================================
+ Coverage 66.80% 68.20% +1.40%
==========================================
Files 404 412 +8
Lines 58231 58204 -27
==========================================
+ Hits 38899 39698 +799
+ Misses 16552 15722 -830
- Partials 2780 2784 +4
|
db21074
to
7109bc5
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.
LGTM
/test-multicluster-e2e |
@@ -333,12 +332,13 @@ multicluster: | |||
{{- with .Values.multicluster }} | |||
# Enable Antrea Multi-cluster Gateway to support cross-cluster traffic. | |||
# This feature is supported only with encap mode. | |||
enable: {{ .enable }} | |||
enableGateway: {{ .enableGateway }} |
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 config in test-mc.sh need to be updated as well.
https://github.com/antrea-io/antrea/blob/main/ci/jenkins/test-mc.sh#L255
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.
Updated test-mc.sh. Thanks!
924769f
to
75aa064
Compare
To be compatible with earlier version deployment manifests, set multicluster.enableGateway to true if multicluster.enable is set to true. Also change the validation logic to ingore Multi-cluster options if the Multicluster feature gate is disabled, to be consistent with other features. Signed-off-by: Jianjun Shen <shenj@vmware.com>
75aa064
to
d8782c5
Compare
/test-multicluster-e2e |
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.
LGTM
/skip-all |
…ea-io#4533) To be compatible with earlier version deployment manifests, set multicluster.enableGateway to true if multicluster.enable is set to true. Also change the validation logic to ignore Multi-cluster options if the Multicluster feature gate is disabled, to be consistent with other features. Signed-off-by: Jianjun Shen <shenj@vmware.com>
To be compatible with earlier version deployment manifests, set multicluster.enableGateway to true if multicluster.enable is set to true.
Also change the validation logic to ignore Multi-cluster options if the Multicluster feature gate is disabled, to be consistent with other features.
Signed-off-by: Jianjun Shen shenj@vmware.com