-
Notifications
You must be signed in to change notification settings - Fork 366
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
Fix IPAM doc and enhance validation #3009
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3009 +/- ##
==========================================
- Coverage 60.57% 59.68% -0.89%
==========================================
Files 292 292
Lines 24708 24708
==========================================
- Hits 14966 14748 -218
- Misses 8104 8336 +232
+ Partials 1638 1624 -14
Flags with carried forward coverage won't be shown. Click here to find out more.
|
docs/antrea-ipam.md
Outdated
@@ -32,7 +32,7 @@ controller. Default is false. | |||
|
|||
- `clusterCIDRs`: CIDR Ranges for Pods in cluster. String array containing single | |||
CIDR range, or multiple ranges. The CIDRs could be either IPv4 or IPv6. Example |
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.
We should mention only one CIDR of an IP family can be used, and we should validate it in controller Options.Validate().
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.
And in this case, do you think we should consider two parameters for v4 and v6 respectively? Or we are thinking about future extension?
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.
Done.
I think the parameters are following kube-controller-manager style where a single parameter is used to take CIDRs for two IP families. And yes, it's possible to extend it to support multiple CIDRs per IP family.
docs/antrea-ipam.md
Outdated
@@ -32,7 +32,7 @@ controller. Default is false. | |||
|
|||
- `clusterCIDRs`: CIDR Ranges for Pods in cluster. String array containing single |
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.
Should we change "Ranges" to "ranges"?
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.
Done
8d4de9a
to
40721dc
Compare
* Multiple CIDRs for an IP family is not supported by NodeIPAM * nodeCIDRMaskSizeIPv6 defaults to 64, use a larger CIDR as example * AntreaIPAM is introduced in v1.4 Signed-off-by: Quan Tian <qtian@vmware.com>
/test-all |
@jianjuns could you approve again? I resolved merge conflicts |
Signed-off-by: Quan Tian qtian@vmware.com