-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support reservation of IpRanges #130
base: main
Are you sure you want to change the base?
Conversation
6dd0a08
to
549e32a
Compare
549e32a
to
ff7f155
Compare
e45d379
to
10e2307
Compare
a58fc71
to
16ae6db
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.
Nice work, please take a look at the comments and let me know if there is something I should clarify :)
Co-authored-by: Alexander North <[email protected]>
Good work @bruelea :) |
Co-authored-by: Chun-Hung Tseng <[email protected]>
Co-authored-by: Chun-Hung Tseng <[email protected]>
7f5720b
to
5a96faa
Compare
5a96faa
to
87bdd6c
Compare
df836d6
to
9c96d13
Compare
LGTM! When CI pipelines are fixed and the comments are all resolved, I will approve it ;) Good job @bruelea |
9c96d13
to
19bdf4f
Compare
Please create a tracking GitHub issue for the IPRange Testing :) |
19bdf4f
to
afc40a6
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.
Great work @bruelea !
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.
Good job @bruelea !
//+kubebuilder:validation:Required | ||
//+kubebuilder:validation:Minimum=2 | ||
//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'size' is immutable" | ||
Size int `json:"size,omitempty"` |
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.
There is a current de-facto hard limit here which is at 50 (should be reproducible by trying to create a iprc with .spec.size 51 in an empty /16 prefix) and a soft limit that might be even lower (depending on the fragmentation of IPs/IP Ranges in the prefix). I assume this is due to pagination in the API. I propose to add validation Maximum=50 here and add a comment to this field but leave the code as is for now.
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.
Added a validation rule for maximum value for size until pagination is added to the function searching an available iprange.
Implements #137